diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-05-05 13:13:59 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-05-05 13:13:59 +0200 |
commit | e615950394ca3a084af37a442c3c3658212e76d5 (patch) | |
tree | 28973b4a95a233ad97d8036b06adb649b0cf5e8f /searchlib/src | |
parent | a6f4bcefc08cb924b179cc1eadd9b2f95f2ffab1 (diff) |
Handle full buffer in feature store.
Diffstat (limited to 'searchlib/src')
-rw-r--r-- | searchlib/src/vespa/searchlib/memoryindex/feature_store.h | 2 |
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); } |