From 901f1560b64dc067538df1070a6cd7b61bbe0d4b Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Fri, 6 Sep 2019 15:13:06 +0200 Subject: Correct code for doing rare buffer flip when reading compressed posting list. --- searchlib/src/vespa/searchlib/diskindex/zc4_posting_reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searchlib/src/vespa/searchlib/diskindex/zc4_posting_reader.cpp b/searchlib/src/vespa/searchlib/diskindex/zc4_posting_reader.cpp index 71a836fb0ac..762ee209e2c 100644 --- a/searchlib/src/vespa/searchlib/diskindex/zc4_posting_reader.cpp +++ b/searchlib/src/vespa/searchlib/diskindex/zc4_posting_reader.cpp @@ -61,7 +61,7 @@ Zc4PostingReader::read_doc_id_and_features(DocIdAndFeatures &features if (__builtin_expect(oCompr >= d._valE, false)) { UC64_DECODECONTEXT_STORE(o, d._); _readContext.readComprBuffer(); - UC64_DECODECONTEXT_STORE(o, d._); + UC64_DECODECONTEXT_LOAD(o, d._); } UC64_DECODEEXPGOLOMB_SMALL_NS(o, K_VALUE_ZCPOSTING_NUM_OCCS, EC); _no_skip.set_num_occs(val64 + 1); -- cgit v1.2.3