diff options
Diffstat (limited to 'src/mongo/db/repl/initial_syncer.h')
-rw-r--r-- | src/mongo/db/repl/initial_syncer.h | 4 |
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 b438a0c97e1..8ee406d8876 100644 --- a/src/mongo/db/repl/initial_syncer.h +++ b/src/mongo/db/repl/initial_syncer.h @@ -81,6 +81,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&)>; @@ -109,6 +112,7 @@ struct InitialSyncerOptions { GetMyLastOptimeFn getMyLastOptime; SetMyLastOptimeFn setMyLastOptime; + ResetOptimesFn resetOptimes; GetSlaveDelayFn getSlaveDelay; SyncSourceSelector* syncSourceSelector = nullptr; |