aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-02-10 08:16:08 +0100
committerGitHub <noreply@github.com>2022-02-10 08:16:08 +0100
commit0b284f194c0b2dc9b1f8b36b489911f32961d840 (patch)
treece7171e2067fed22b02428eb21af7f9abffe48ca /searchlib
parent340d85dd7642b1b1d72784255bc3e224384ae314 (diff)
parente85861c4540e99e1f34d1ced6bb079df51424c31 (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.cpp2
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();