summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/multiapplier.h
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2016-08-29 14:09:04 -0400
committerBenety Goh <benety@mongodb.com>2016-08-30 13:14:55 -0400
commit128e24d6ecbb38d17e4fcb68df063c4713d7f95e (patch)
treec9e22cddb51d1faf4cc13bde6f31c1f6a38c1acd /src/mongo/db/repl/multiapplier.h
parentd70053e0ce73eea11b4e8c776a990a613899d7e3 (diff)
downloadmongo-128e24d6ecbb38d17e4fcb68df063c4713d7f95e.tar.gz
SERVER-25031 removed unused function MultiApplier::applyUntilAndPause
Diffstat (limited to 'src/mongo/db/repl/multiapplier.h')
-rw-r--r--src/mongo/db/repl/multiapplier.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mongo/db/repl/multiapplier.h b/src/mongo/db/repl/multiapplier.h
index 5288009e0d8..31ec4f93353 100644
--- a/src/mongo/db/repl/multiapplier.h
+++ b/src/mongo/db/repl/multiapplier.h
@@ -159,28 +159,5 @@ private:
executor::TaskExecutor::CallbackHandle _dbWorkCallbackHandle;
};
-
-/**
- * Applies operations (sorted by timestamp) up to and including 'lastTimestampToApply'.
- * If 'lastTimestampToApply' is found in 'operations':
- * - The applier will be given a subset of 'operations' (includes 'lastTimestampToApply').
- * - On success, the applier will invoke the 'pause' function just before reporting
- * completion status.
- * Otherwise, all entries in 'operations' before 'lastTimestampToApply' will be forwarded to
- * the applier and the 'pause' function will be ignored.
- * If the applier is successfully created, returns the applier and a list of operations that
- * are skipped (operations with 'ts' field value after 'lastTimestampToApply).
- */
-using PauseDataReplicatorFn = stdx::function<void()>;
-
-StatusWith<std::pair<std::unique_ptr<MultiApplier>, MultiApplier::Operations>> applyUntilAndPause(
- executor::TaskExecutor* executor,
- const MultiApplier::Operations& operations,
- const MultiApplier::ApplyOperationFn& applyOperation,
- const MultiApplier::ApplyOperationFn& multiApply,
- const Timestamp& lastTimestampToApply,
- const PauseDataReplicatorFn& pauseDataReplicator,
- const MultiApplier::CallbackFn& onCompletion);
-
} // namespace repl
} // namespace mongo