summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-06-04 15:01:29 +0200
committerTor Egge <Tor.Egge@broadpark.no>2019-06-04 15:01:29 +0200
commitca75983acaa894d86b727c8c91026110d32d6dae (patch)
treefe180e8b8d7f0a5a84f7919c3f05d5a483cf5595 /searchcore
parent05a2b4d3fbf3be03c69a42252051c141ec11fc14 (diff)
Wire field inverter at construction time.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/index/indexmanager_test.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/searchcore/src/tests/proton/index/indexmanager_test.cpp b/searchcore/src/tests/proton/index/indexmanager_test.cpp
index 9abd3e6cb39..9ceb85981c0 100644
--- a/searchcore/src/tests/proton/index/indexmanager_test.cpp
+++ b/searchcore/src/tests/proton/index/indexmanager_test.cpp
@@ -364,7 +364,7 @@ TEST_F("requireThatFlushStatsAreCalculated", Fixture) {
SequencedTaskExecutor invertThreads(2);
SequencedTaskExecutor pushThreads(2);
search::memoryindex::DocumentInverter inverter(schema, invertThreads,
- pushThreads);
+ pushThreads, fic);
uint64_t fixed_index_size = fic.getMemoryUsage().allocatedBytes();
uint64_t index_size = fic.getMemoryUsage().allocatedBytes() - fixed_index_size;
@@ -378,8 +378,7 @@ TEST_F("requireThatFlushStatsAreCalculated", Fixture) {
Document::UP doc = f.addDocument(docid);
inverter.invertDocument(docid, *doc);
invertThreads.sync();
- inverter.pushDocuments(fic,
- std::shared_ptr<search::IDestructorCallback>());
+ inverter.pushDocuments(std::shared_ptr<search::IDestructorCallback>());
pushThreads.sync();
index_size = fic.getMemoryUsage().allocatedBytes() - fixed_index_size;
@@ -398,8 +397,7 @@ TEST_F("requireThatFlushStatsAreCalculated", Fixture) {
doc = f.addDocument(docid + 100);
inverter.invertDocument(docid + 100, *doc);
invertThreads.sync();
- inverter.pushDocuments(fic,
- std::shared_ptr<search::IDestructorCallback>());
+ inverter.pushDocuments(std::shared_ptr<search::IDestructorCallback>());
pushThreads.sync();
index_size = fic.getMemoryUsage().allocatedBytes() - fixed_index_size;
/// Must account for both docid 0 being reserved and the extra after.