summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_external_state.h
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2016-11-30 00:14:28 -0500
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2017-02-27 19:28:13 -0500
commit1da3111dc238698e4e70672b7ba260a368121e50 (patch)
tree40907eb4d351ac451b03fe00bdba72ece5fe6f17 /src/mongo/db/repl/replication_coordinator_external_state.h
parentd124f6c14f51440fff9734578166a6a49e3b463b (diff)
downloadmongo-1da3111dc238698e4e70672b7ba260a368121e50.tar.gz
SERVER-27120 Increase synchronization between producer/applier threads and stepdown/stepup
SERVER-27913 Make sure the last applied hash is corresponding to the last applied optime in bgsync start()
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_external_state.h')
-rw-r--r--src/mongo/db/repl/replication_coordinator_external_state.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_external_state.h b/src/mongo/db/repl/replication_coordinator_external_state.h
index c995f30a468..66283518bfe 100644
--- a/src/mongo/db/repl/replication_coordinator_external_state.h
+++ b/src/mongo/db/repl/replication_coordinator_external_state.h
@@ -255,9 +255,14 @@ public:
virtual void signalApplierToChooseNewSyncSource() = 0;
/**
- * Notifies the bgsync to cancel the current oplog fetcher.
+ * Notifies the bgsync to stop fetching data.
*/
- virtual void signalApplierToCancelFetcher() = 0;
+ virtual void stopProducer() = 0;
+
+ /**
+ * Start bgsync's producer if it's stopped.
+ */
+ virtual void startProducerIfStopped() = 0;
/**
* Drops all snapshots and clears the "committed" snapshot.