summaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp b/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp
index 22aeeec4ef6..e3cf394c143 100644
--- a/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/storeonlydocsubdb.cpp
@@ -405,13 +405,20 @@ StoreOnlyDocSubDB::getSubDbName() const {
return vespalib::make_string("%s.%s", _owner.getName().c_str(), _subName.c_str());
}
-std::unique_ptr<const DocumentSubDBReconfig>
-StoreOnlyDocSubDB::prepare_reconfig(const DocumentDBConfig& new_config_snapshot, const DocumentDBConfig& old_config_snapshot, const ReconfigParams& reconfig_params)
+std::unique_ptr<DocumentSubDBReconfig>
+StoreOnlyDocSubDB::prepare_reconfig(const DocumentDBConfig& new_config_snapshot, const DocumentDBConfig& old_config_snapshot, const ReconfigParams& reconfig_params, std::optional<SerialNum> serial_num)
{
(void) new_config_snapshot;
(void) old_config_snapshot;
(void) reconfig_params;
- return std::make_unique<const DocumentSubDBReconfig>(std::shared_ptr<Matchers>());
+ (void) serial_num;
+ return std::make_unique<DocumentSubDBReconfig>(std::shared_ptr<Matchers>());
+}
+
+void
+StoreOnlyDocSubDB::complete_prepare_reconfig(DocumentSubDBReconfig& prepared_reconfig, SerialNum serial_num)
+{
+ prepared_reconfig.complete(_dms->getCommittedDocIdLimit(), serial_num);
}
IReprocessingTask::List