summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahooinc.com>2022-03-17 15:41:30 +0100
committerTor Egge <Tor.Egge@yahooinc.com>2022-03-17 15:41:30 +0100
commit166d16b40ac9c73b3a9558dfd802a38c29f2bd52 (patch)
treed9a33c3524602d5dbebcbf6d830c887a5e367e1b /searchlib
parent90cdd84b93c368774fa8f30d726c4029ef0638ac (diff)
Use backing store with lock.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/tests/docstore/store_by_bucket/store_by_bucket_test.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/searchlib/src/tests/docstore/store_by_bucket/store_by_bucket_test.cpp b/searchlib/src/tests/docstore/store_by_bucket/store_by_bucket_test.cpp
index 816e6933e5c..da900ddecee 100644
--- a/searchlib/src/tests/docstore/store_by_bucket/store_by_bucket_test.cpp
+++ b/searchlib/src/tests/docstore/store_by_bucket/store_by_bucket_test.cpp
@@ -66,7 +66,8 @@ private:
TEST("require that StoreByBucket gives bucket by bucket and ordered within")
{
- vespalib::MemoryDataStore backing;
+ std::mutex backing_lock;
+ vespalib::MemoryDataStore backing(vespalib::alloc::Alloc::alloc(256), &backing_lock);
vespalib::ThreadStackExecutor executor(8, 128_Ki);
StoreByBucket sbb(backing, executor, CompressionConfig::LZ4);
for (size_t i(1); i <=500; i++) {