summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@yahooinc.com>2022-05-05 13:58:46 +0200
committerGitHub <noreply@github.com>2022-05-05 13:58:46 +0200
commit25e3c3a9ac64309593433e87ade9d608c4c2c2e4 (patch)
tree7043c28eb6143b9ab9ca95b730937abc3ae07726
parentea3587917f2ea8b2bd2c93baa141aacebe306a9d (diff)
parente615950394ca3a084af37a442c3c3658212e76d5 (diff)
Merge pull request #22470 from vespa-engine/toregge/handle-full-buffer-in-feature-store
Handle full buffer in feature store. MERGEOK
-rw-r--r--searchlib/src/vespa/searchlib/memoryindex/feature_store.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/memoryindex/feature_store.h b/searchlib/src/vespa/searchlib/memoryindex/feature_store.h
index 3c1b64a1488..a96ae9a8f2d 100644
--- a/searchlib/src/vespa/searchlib/memoryindex/feature_store.h
+++ b/searchlib/src/vespa/searchlib/memoryindex/feature_store.h
@@ -154,7 +154,7 @@ public:
uint32_t bufferId = RefType(ref).bufferId();
const vespalib::datastore::BufferState &state = _store.getBufferState(bufferId);
decoder.setEnd(
- ((_store.getEntry<uint8_t>(RefType(state.size(), bufferId)) -
+ ((_store.getEntry<uint8_t>(RefType(0, bufferId)) + state.size() -
bits) + 7) / 8,
false);
}