From 0eeb583afd9d4e5d88ae107ad09b5edd25b25f41 Mon Sep 17 00:00:00 2001 From: krunal Date: Fri, 6 Oct 2023 14:36:41 +0530 Subject: [PATCH] adding missing fields --- src/posting_list.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/posting_list.cpp b/src/posting_list.cpp index 8e243f45..f722b6ea 100644 --- a/src/posting_list.cpp +++ b/src/posting_list.cpp @@ -1699,7 +1699,14 @@ void posting_list_t::iterator_t::previous() { curr_index = curr_block->size()-1; delete [] ids; + delete [] offset_index; + delete [] offsets; + + ids = offset_index = offsets = nullptr; + ids = curr_block->ids.uncompress(); + offset_index = curr_block->offset_index.uncompress(); + offsets = curr_block->offsets.uncompress(); } else { curr_block = end_block; }