diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2019-06-04 15:01:29 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2019-06-04 15:01:29 +0200 |
commit | ca75983acaa894d86b727c8c91026110d32d6dae (patch) | |
tree | fe180e8b8d7f0a5a84f7919c3f05d5a483cf5595 /searchcore/src/tests/proton/index | |
parent | 05a2b4d3fbf3be03c69a42252051c141ec11fc14 (diff) |
Wire field inverter at construction time.
Diffstat (limited to 'searchcore/src/tests/proton/index')
-rw-r--r-- | searchcore/src/tests/proton/index/indexmanager_test.cpp | 8 |
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. |