summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/common
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-05-24 09:07:00 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-05-24 09:07:00 +0000
commit7aef2017e0af21f9b0f1290f2299bcb39319a384 (patch)
tree763b597f3ad7b4e435f837e6e54ff4b3f9308dcd /searchcore/src/tests/proton/common
parentf3c40af9152d7c6eb9616073626551cef258a52d (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.cpp2
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) {