summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-02-09 20:27:30 +0100
committerTor Egge <Tor.Egge@online.no>2022-02-09 20:27:30 +0100
commite85861c4540e99e1f34d1ced6bb079df51424c31 (patch)
tree5d2727571650828b30f11a1f8969fb74b4d0f83e /searchlib
parent6c6587b5be7ea8ca01bfbfba42b290fb4873ba45 (diff)
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();