diff options
author | Tor Egge <Tor.Egge@online.no> | 2021-12-09 15:36:12 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2021-12-09 17:22:09 +0100 |
commit | 66a12314e0350f877a6335cc5338210db6a00d34 (patch) | |
tree | 45cd7a410ac590326232dc736adf772d2f1c3e7b /searchlib/src/tests/attribute/posting_store/posting_store_test.cpp | |
parent | 828ebd77e0a57c1da583f43f1f2bc0512ab698e9 (diff) |
Calculate need for compaction when updating stats.
Diffstat (limited to 'searchlib/src/tests/attribute/posting_store/posting_store_test.cpp')
-rw-r--r-- | searchlib/src/tests/attribute/posting_store/posting_store_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searchlib/src/tests/attribute/posting_store/posting_store_test.cpp b/searchlib/src/tests/attribute/posting_store/posting_store_test.cpp index 34b8603c63c..10cc14012dd 100644 --- a/searchlib/src/tests/attribute/posting_store/posting_store_test.cpp +++ b/searchlib/src/tests/attribute/posting_store/posting_store_test.cpp @@ -163,7 +163,7 @@ PostingStoreTest::test_compact_sequence(uint32_t sequence_length) bool compaction_done = false; CompactionStrategy compaction_strategy(0.05, 0.2); for (uint32_t pass = 0; pass < 45; ++pass) { - store.update_stat(); + store.update_stat(compaction_strategy); auto guard = _gen_handler.takeGuard(); if (!store.consider_compact_worst_buffers(compaction_strategy)) { compaction_done = true; @@ -196,7 +196,7 @@ PostingStoreTest::test_compact_btree_nodes(uint32_t sequence_length) bool compaction_done = false; CompactionStrategy compaction_strategy(0.05, 0.2); for (uint32_t pass = 0; pass < 55; ++pass) { - store.update_stat(); + store.update_stat(compaction_strategy); auto guard = _gen_handler.takeGuard(); if (!store.consider_compact_worst_btree_nodes(compaction_strategy)) { compaction_done = true; |