diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2021-01-06 13:36:23 +0100 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2021-01-06 13:39:43 +0100 |
commit | de1d36b97e0109229e46f2617432bea6c31a5132 (patch) | |
tree | 53248f21c4ccff84bcd2e541b7c2e84eaf49f0c6 /searchcore/src/tests/proton/documentmetastore | |
parent | 293ea711b89d760bdea84f22d1b66ff94dad6667 (diff) |
Wire in use of flush tokens for flush targets.
Diffstat (limited to 'searchcore/src/tests/proton/documentmetastore')
-rw-r--r-- | searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp b/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp index 326cfba97f4..21b32b40c80 100644 --- a/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp +++ b/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp @@ -11,6 +11,7 @@ #include <vespa/searchcore/proton/flushengine/shrink_lid_space_flush_target.h> #include <vespa/searchcore/proton/server/itlssyncer.h> #include <vespa/searchlib/attribute/attributefilesavetarget.h> +#include <vespa/searchlib/common/flush_token.h> #include <vespa/searchlib/common/tunefileinfo.h> #include <vespa/searchlib/fef/matchdatalayout.h> #include <vespa/searchlib/index/dummyfileheadercontext.h> @@ -1900,7 +1901,7 @@ TEST(DocumentMetaStoreTest, shrink_via_flush_target_works) ft->getApproxMemoryGain().getAfter()); vespalib::ThreadStackExecutor exec(1, 128 * 1024); - vespalib::Executor::Task::UP task = ft->initFlush(11); + vespalib::Executor::Task::UP task = ft->initFlush(11, std::make_shared<search::FlushToken>()); exec.execute(std::move(task)); exec.sync(); exec.shutdown(); |