summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-03-10 10:20:35 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-03-10 10:20:35 +0000
commit265a2a95bc29065aca01f518266527cf8b192091 (patch)
treeec6cca37154da35b70bdff4fc1a3ab2c59801d21 /vespalib
parent9cc13d5339f421e5fb032333157694d7f267b452 (diff)
Use BufferMeta instead of BufferState to get array size
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/datastore/unique_store_string_comparator.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/unique_store_string_comparator.h b/vespalib/src/vespa/vespalib/datastore/unique_store_string_comparator.h
index 73a812ccd0b..e507132a085 100644
--- a/vespalib/src/vespa/vespalib/datastore/unique_store_string_comparator.h
+++ b/vespalib/src/vespa/vespalib/datastore/unique_store_string_comparator.h
@@ -25,10 +25,10 @@ protected:
const char *get(EntryRef ref) const {
if (ref.valid()) {
RefType iRef(ref);
- auto &state = _store.getBufferState(iRef.bufferId());
- auto type_id = state.getTypeId();
+ const auto &meta = _store.getBufferMeta(iRef.bufferId());
+ auto type_id = meta.getTypeId();
if (type_id != 0) {
- return reinterpret_cast<const UniqueStoreSmallStringEntry *>(_store.template getEntryArray<char>(iRef, state.getArraySize()))->value();
+ return reinterpret_cast<const UniqueStoreSmallStringEntry *>(_store.template getEntryArray<char>(iRef, meta.getArraySize()))->value();
} else {
return _store.template getEntry<WrappedExternalEntryType>(iRef)->value().c_str();
}