diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-11-24 05:45:54 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-11-24 13:05:21 +0000 |
commit | 1545c0208a32e96db1bf17237b465757e7eab617 (patch) | |
tree | 5104d2d02273eabf8e8a6d6615daa0f127b393db /storage/src/tests/persistence/filestorage/filestormanagertest.cpp | |
parent | 6534a31a780aec69a208c11ac50d43a3621773a0 (diff) |
Remove load type from Context
Diffstat (limited to 'storage/src/tests/persistence/filestorage/filestormanagertest.cpp')
-rw-r--r-- | storage/src/tests/persistence/filestorage/filestormanagertest.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/storage/src/tests/persistence/filestorage/filestormanagertest.cpp b/storage/src/tests/persistence/filestorage/filestormanagertest.cpp index 7cfe7ea3761..3cac188cb17 100644 --- a/storage/src/tests/persistence/filestorage/filestormanagertest.cpp +++ b/storage/src/tests/persistence/filestorage/filestormanagertest.cpp @@ -56,7 +56,7 @@ namespace storage { namespace { -spi::LoadType defaultLoadType(0, "default"); +metrics::LoadType defaultLoadType(0, "default"); struct TestFileStorComponents; @@ -86,7 +86,7 @@ struct FileStorTestBase : Test { void TearDown() override; void createBucket(document::BucketId bid) { - spi::Context context(defaultLoadType, spi::Priority(0), spi::Trace::TraceLevel(0)); + spi::Context context(spi::Priority(0), spi::Trace::TraceLevel(0)); _node->getPersistenceProvider().createBucket(makeSpiBucket(bid), context); StorBucketDatabase::WrappedEntry entry( @@ -728,7 +728,7 @@ TEST_F(FileStorManagerTest, priority) { for (uint32_t i=0; i<documents.size(); ++i) { document::BucketId bucket(16, factory.getBucketId(documents[i]->getId()).getRawId()); - spi::Context context(defaultLoadType, spi::Priority(0), spi::Trace::TraceLevel(0)); + spi::Context context(spi::Priority(0), spi::Trace::TraceLevel(0)); _node->getPersistenceProvider().createBucket(makeSpiBucket(bucket), context); } @@ -790,8 +790,7 @@ TEST_F(FileStorManagerTest, split1) { documents.push_back(doc); } document::BucketIdFactory factory; - spi::Context context(defaultLoadType, spi::Priority(0), - spi::Trace::TraceLevel(0)); + spi::Context context(spi::Priority(0), spi::Trace::TraceLevel(0)); { // Populate bucket with the given data for (uint32_t i=0; i<documents.size(); ++i) { @@ -905,7 +904,7 @@ TEST_F(FileStorManagerTest, split_single_group) { auto& top = c.top; setClusterState("storage:2 distributor:1"); - spi::Context context(defaultLoadType, spi::Priority(0), spi::Trace::TraceLevel(0)); + spi::Context context(spi::Priority(0), spi::Trace::TraceLevel(0)); for (uint32_t j=0; j<1; ++j) { // Test this twice, once where all the data ends up in file with // splitbit set, and once where all the data ends up in file with @@ -984,8 +983,7 @@ FileStorTestBase::putDoc(DummyStorageLink& top, uint32_t docNum) { api::StorageMessageAddress address("storage", lib::NodeType::STORAGE, 3); - spi::Context context(defaultLoadType, spi::Priority(0), - spi::Trace::TraceLevel(0)); + spi::Context context(spi::Priority(0), spi::Trace::TraceLevel(0)); document::BucketIdFactory factory; document::DocumentId docId(vespalib::make_string("id:ns:testdoctype1:n=%" PRIu64 ":%d", target.getId(), docNum)); document::BucketId bucket(16, factory.getBucketId(docId).getRawId()); |