diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-02-10 08:16:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-10 08:16:08 +0100 |
commit | 0b284f194c0b2dc9b1f8b36b489911f32961d840 (patch) | |
tree | ce7171e2067fed22b02428eb21af7f9abffe48ca /searchlib | |
parent | 340d85dd7642b1b1d72784255bc3e224384ae314 (diff) | |
parent | e85861c4540e99e1f34d1ced6bb079df51424c31 (diff) |
Merge pull request #21127 from vespa-engine/toregge/keep-memory-allocator-when-resizing-rcu-vector
Keep using same memory allocator when resizing rcu vector.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/attribute/singleenumattribute.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/singleenumattribute.cpp b/searchlib/src/vespa/searchlib/attribute/singleenumattribute.cpp index 18805a7b20f..d049e53c0a2 100644 --- a/searchlib/src/vespa/searchlib/attribute/singleenumattribute.cpp +++ b/searchlib/src/vespa/searchlib/attribute/singleenumattribute.cpp @@ -49,7 +49,7 @@ SingleValueEnumAttributeBase::remap_enum_store_refs(const EnumIndexRemapper& rem { // update _enumIndices with new EnumIndex values after enum store has been compacted. v.logEnumStoreEvent("reenumerate", "reserved"); - vespalib::Array<EnumIndex> new_indexes; + auto new_indexes = _enumIndices.create_replacement_vector(); new_indexes.reserve(_enumIndices.capacity()); v.logEnumStoreEvent("reenumerate", "start"); auto& filter = remapper.get_entry_ref_filter(); |