summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/initial_syncer.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/initial_syncer.h')
-rw-r--r--src/mongo/db/repl/initial_syncer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/initial_syncer.h b/src/mongo/db/repl/initial_syncer.h
index 0f3ac5857ce..6faeddb385e 100644
--- a/src/mongo/db/repl/initial_syncer.h
+++ b/src/mongo/db/repl/initial_syncer.h
@@ -92,6 +92,9 @@ struct InitialSyncerOptions {
/** Function to update optime of last operation applied on this node */
using SetMyLastOptimeFn = stdx::function<void(const OpTime&)>;
+ /** Function to reset all optimes on this node (e.g. applied & durable). */
+ using ResetOptimesFn = stdx::function<void()>;
+
/** Function to sets this node into a specific follower mode. */
using SetFollowerModeFn = stdx::function<bool(const MemberState&)>;
@@ -120,6 +123,7 @@ struct InitialSyncerOptions {
GetMyLastOptimeFn getMyLastOptime;
SetMyLastOptimeFn setMyLastOptime;
+ ResetOptimesFn resetOptimes;
GetSlaveDelayFn getSlaveDelay;
SyncSourceSelector* syncSourceSelector = nullptr;