diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-05-24 09:07:00 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-05-24 09:07:00 +0000 |
commit | 7aef2017e0af21f9b0f1290f2299bcb39319a384 (patch) | |
tree | 763b597f3ad7b4e435f837e6e54ff4b3f9308dcd /searchcore/src/tests/proton/common | |
parent | f3c40af9152d7c6eb9616073626551cef258a52d (diff) |
- Introduce the concept of minimal capacity for rcu vectors.
- This is to prevent shrinking down past what has been configured in proton.documentdb[].allocation.initialnumdocs
- shrinking down past the configured value is not supported as that would counter the preallocation done to prevent resizing.
Diffstat (limited to 'searchcore/src/tests/proton/common')
-rw-r--r-- | searchcore/src/tests/proton/common/alloc_config/alloc_config_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/common/alloc_config/alloc_config_test.cpp b/searchcore/src/tests/proton/common/alloc_config/alloc_config_test.cpp index 59503464222..a27c66cfaa2 100644 --- a/searchcore/src/tests/proton/common/alloc_config/alloc_config_test.cpp +++ b/searchcore/src/tests/proton/common/alloc_config/alloc_config_test.cpp @@ -15,7 +15,7 @@ namespace { CompactionStrategy baseline_compaction_strategy(0.2, 0.25); GrowStrategy make_grow_strategy(uint32_t initial_docs) { - return GrowStrategy(initial_docs, 0.1, 1, 0.15); + return GrowStrategy(initial_docs, 0.1, 1, initial_docs, 0.15); } AllocStrategy make_alloc_strategy(uint32_t initial_docs) { |