diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-03-15 14:31:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-15 14:31:12 +0100 |
commit | d80b2f03e03595fa98046991b945a5b2eb0daddd (patch) | |
tree | 6bfeff52a4627208f084cc89ce2dac006895ff9f /vespalib/src | |
parent | 33118797862c2025aeafdf11422754e6df4396fc (diff) | |
parent | 851e8e34a17eeed3eef2fe47f2310ad0f876f0bd (diff) |
Merge pull request #26451 from vespa-engine/toregge/factor-out-implementation-dependent-sizeof-std-string
Factor out implementation dependent sizeof(std::string).
Diffstat (limited to 'vespalib/src')
-rw-r--r-- | vespalib/src/vespa/vespalib/datastore/unique_store_string_allocator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespalib/src/vespa/vespalib/datastore/unique_store_string_allocator.cpp b/vespalib/src/vespa/vespalib/datastore/unique_store_string_allocator.cpp index 3e2adf21619..1d3ba27d6bf 100644 --- a/vespalib/src/vespa/vespalib/datastore/unique_store_string_allocator.cpp +++ b/vespalib/src/vespa/vespalib/datastore/unique_store_string_allocator.cpp @@ -78,7 +78,7 @@ UniqueStoreSmallStringBufferType::get_memory_allocator() const } UniqueStoreExternalStringBufferType::UniqueStoreExternalStringBufferType(uint32_t array_size, uint32_t max_arrays, std::shared_ptr<vespalib::alloc::MemoryAllocator> memory_allocator) - : BufferType<UniqueStoreEntry<std::string>>(array_size, 2u, max_arrays, NUM_ARRAYS_FOR_NEW_UNIQUESTORE_BUFFER, ALLOC_GROW_FACTOR), + : BufferType<UniqueStoreEntry<std::string>>(array_size, 0u, max_arrays, NUM_ARRAYS_FOR_NEW_UNIQUESTORE_BUFFER, ALLOC_GROW_FACTOR), _memory_allocator(std::move(memory_allocator)) { } |