summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/multi_value_mapping
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-06-26 15:42:52 +0200
committerTor Egge <Tor.Egge@online.no>2023-06-26 15:42:52 +0200
commitea9ab309251793ca53b419ddd6629b787bb07210 (patch)
treeb24f98b5d16d9d257a3099dc08b100224f03f088 /searchlib/src/tests/attribute/multi_value_mapping
parent0252aee2a195a8462a0e12d505b682acc019db81 (diff)
Add max buffer size parameter to array store dynamic type mapper.
Diffstat (limited to 'searchlib/src/tests/attribute/multi_value_mapping')
-rw-r--r--searchlib/src/tests/attribute/multi_value_mapping/multi_value_mapping_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/attribute/multi_value_mapping/multi_value_mapping_test.cpp b/searchlib/src/tests/attribute/multi_value_mapping/multi_value_mapping_test.cpp
index 4b01808e855..e3e4f391cc4 100644
--- a/searchlib/src/tests/attribute/multi_value_mapping/multi_value_mapping_test.cpp
+++ b/searchlib/src/tests/attribute/multi_value_mapping/multi_value_mapping_test.cpp
@@ -95,7 +95,7 @@ public:
ArrayStoreConfig config(max_array_store_type_id,
ArrayStoreConfig::AllocSpec(0, RefType::offsetSize(), 8_Ki, ALLOC_GROW_FACTOR));
config.enable_free_lists(enable_free_lists);
- _mvMapping = std::make_unique<MvMapping>(config, vespalib::GrowStrategy(), std::make_unique<MemoryAllocatorObserver>(_stats));
+ _mvMapping = std::make_unique<MvMapping>(config, ArrayStoreConfig::default_max_buffer_size, vespalib::GrowStrategy(), std::make_unique<MemoryAllocatorObserver>(_stats));
_attr = std::make_unique<AttributeType>(*_mvMapping);
_maxSmallArraySize = _mvMapping->get_mapper().get_array_size(max_array_store_type_id);
}
@@ -103,7 +103,7 @@ public:
ArrayStoreConfig config(max_array_store_type_id,
ArrayStoreConfig::AllocSpec(min_entries, max_entries, num_entries_for_new_buffer, ALLOC_GROW_FACTOR));
config.enable_free_lists(enable_free_lists);
- _mvMapping = std::make_unique<MvMapping>(config, vespalib::GrowStrategy(), std::make_unique<MemoryAllocatorObserver>(_stats));
+ _mvMapping = std::make_unique<MvMapping>(config, ArrayStoreConfig::default_max_buffer_size, vespalib::GrowStrategy(), std::make_unique<MemoryAllocatorObserver>(_stats));
_attr = std::make_unique<AttributeType>(*_mvMapping);
_maxSmallArraySize = _mvMapping->get_mapper().get_array_size(max_array_store_type_id);
}