summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-10-29 19:00:05 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-10-29 19:00:05 +0000
commitc732b01d45595ad831325cb8a7e032c38c1de4c3 (patch)
tree629867ff5eef670fa008ad0312bccaf1a2ba422b /searchlib/src/tests
parent18a747185627747b0d137d8d4f06da3024587114 (diff)
Remove the lids in one task instead of 1k tasks for full buckets on delete bucket.
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r--searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp b/searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp
index 59ade118990..20cfb045081 100644
--- a/searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp
+++ b/searchlib/src/tests/memoryindex/memory_index/memory_index_test.cpp
@@ -112,7 +112,9 @@ struct Index {
return d;
}
Index &remove(uint32_t id) {
- index.removeDocument(id);
+ std::vector<uint32_t> lids;
+ lids.push_back(id);
+ index.removeDocuments(std::move(lids));
internalSyncCommit();
return *this;
}