summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/initial_syncer.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-05-30 14:58:59 -0400
committerJudah Schvimer <judah@mongodb.com>2017-05-30 14:58:59 -0400
commit244ed4e90574c41c793a8f8e7fd3a1142cb1de9f (patch)
tree9b02a225c30ec0f129ac47a3d9d0984c8438be81 /src/mongo/db/repl/initial_syncer.h
parent7b112f71fe551e92ae0a365f62fff402d4158035 (diff)
downloadmongo-244ed4e90574c41c793a8f8e7fd3a1142cb1de9f.tar.gz
SERVER-29254 Moved MinValid into ReplicationProcess
Diffstat (limited to 'src/mongo/db/repl/initial_syncer.h')
-rw-r--r--src/mongo/db/repl/initial_syncer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/repl/initial_syncer.h b/src/mongo/db/repl/initial_syncer.h
index 81e42c7956e..b438a0c97e1 100644
--- a/src/mongo/db/repl/initial_syncer.h
+++ b/src/mongo/db/repl/initial_syncer.h
@@ -71,9 +71,9 @@ MONGO_FP_FORWARD_DECLARE(rsSyncApplyStop);
struct InitialSyncState;
struct MemberState;
+class ReplicationProcess;
class StorageInterface;
-
struct InitialSyncerOptions {
/** Function to return optime of last operation applied on this node */
using GetMyLastOptimeFn = stdx::function<OpTime()>;
@@ -174,6 +174,7 @@ public:
InitialSyncer(InitialSyncerOptions opts,
std::unique_ptr<DataReplicatorExternalState> dataReplicatorExternalState,
StorageInterface* storage,
+ ReplicationProcess* replicationProcess,
const OnCompletionFn& onCompletion);
virtual ~InitialSyncer();
@@ -558,6 +559,7 @@ private:
std::unique_ptr<DataReplicatorExternalState> _dataReplicatorExternalState; // (R)
executor::TaskExecutor* _exec; // (R)
StorageInterface* _storage; // (R)
+ ReplicationProcess* _replicationProcess; // (S)
// This is invoked with the final status of the initial sync. If startup() fails, this callback
// is never invoked. The caller gets the last applied optime with hash when the initial sync