aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2021-12-08 13:07:05 +0100
committerTor Egge <Tor.Egge@online.no>2021-12-08 13:07:05 +0100
commit7553a7267623edf2c45dd5a0fd1cea883ab691f7 (patch)
treea928677c7b0ac2d4b60ed0f5b33c0ba815210ac2 /searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
parent2dd0a7ad258fa182ed3ac8a199751dd60f73b0f7 (diff)
Move CompactionStrategy from searchcommon to vespalib.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp')
-rw-r--r--searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp b/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
index 7f28ccd0737..0460f10f88f 100644
--- a/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
@@ -60,6 +60,7 @@ using storage::spi::Timestamp;
using vespa::config::search::core::ProtonConfig;
using vespa::config::content::core::BucketspacesConfig;
using vespalib::mkdir;
+using vespalib::datastore::CompactionStrategy;
using proton::index::IndexConfig;
typedef StoreOnlyDocSubDB::Config StoreOnlyConfig;
@@ -564,7 +565,7 @@ TEST_F("require that attribute manager can be reconfigured", SearchableFixture)
TEST_F("require that subdb reflect retirement", FastAccessFixture)
{
- search::CompactionStrategy cfg(0.1, 0.3);
+ CompactionStrategy cfg(0.1, 0.3);
EXPECT_FALSE(f._subDb.isNodeRetired());
auto unretired_cfg = f._subDb.computeCompactionStrategy(cfg);
@@ -576,7 +577,7 @@ TEST_F("require that subdb reflect retirement", FastAccessFixture)
EXPECT_TRUE(f._subDb.isNodeRetired());
auto retired_cfg = f._subDb.computeCompactionStrategy(cfg);
EXPECT_TRUE(cfg != retired_cfg);
- EXPECT_TRUE(search::CompactionStrategy(0.5, 0.5) == retired_cfg);
+ EXPECT_TRUE(CompactionStrategy(0.5, 0.5) == retired_cfg);
calc->setNodeRetired(false);
f.setBucketStateCalculator(calc);
@@ -586,8 +587,8 @@ TEST_F("require that subdb reflect retirement", FastAccessFixture)
}
TEST_F("require that attribute compaction config reflect retirement", FastAccessFixture) {
- search::CompactionStrategy default_cfg(0.05, 0.2);
- search::CompactionStrategy retired_cfg(0.5, 0.5);
+ CompactionStrategy default_cfg(0.05, 0.2);
+ CompactionStrategy retired_cfg(0.5, 0.5);
auto guard = f._subDb.getAttributeManager()->getAttribute("attr1");
EXPECT_EQUAL(default_cfg, (*guard)->getConfig().getCompactionStrategy());