diff options
author | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2018-06-21 13:18:09 -0400 |
---|---|---|
committer | Vesselina Ratcheva <vesselina.ratcheva@10gen.com> | 2018-07-02 21:03:07 -0400 |
commit | 925a113194e00e193318486f576d14e6c3e27ea1 (patch) | |
tree | 21e3e838e7d5a91b79a17c6dee2b45d4aedbe8e0 /src/mongo/db/repl/replication_coordinator_impl.h | |
parent | f683298f0f85129b4eaf0c16244fe984943f42ce (diff) | |
download | mongo-925a113194e00e193318486f576d14e6c3e27ea1.tar.gz |
SERVER-35058 Do not rely only on heartbeats to signal secondary positions in the stepdown command
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl.h')
-rw-r--r-- | src/mongo/db/repl/replication_coordinator_impl.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.h b/src/mongo/db/repl/replication_coordinator_impl.h index 35eca16fcb3..0416df74823 100644 --- a/src/mongo/db/repl/replication_coordinator_impl.h +++ b/src/mongo/db/repl/replication_coordinator_impl.h @@ -380,7 +380,7 @@ public: void waitForElectionDryRunFinish_forTest(); /** - * Waits until a stepdown command has begun. Callers should ensure that the stepdown attempt + * Waits until a stepdown attempt has begun. Callers should ensure that the stepdown attempt * won't fully complete before this method is called, or this method may never return. */ void waitForStepDownAttempt_forTest(); @@ -615,13 +615,6 @@ private: Status _checkIfWriteConcernCanBeSatisfied_inlock(const WriteConcernOptions& writeConcern) const; - /** - * Wakes up threads in the process of handling a stepdown request based on whether the - * TopologyCoordinator now believes enough secondaries are caught up for the stepdown request to - * complete. - */ - void _signalStepDownWaiterIfReady_inlock(); - bool _canAcceptWritesFor_inlock(const NamespaceString& ns); int _getMyId_inlock() const; @@ -1170,9 +1163,6 @@ private: // This member's index position in the current config. int _selfIndex; // (M) - // Condition to signal when new heartbeat data comes in. - stdx::condition_variable _stepDownWaiters; // (M) - std::unique_ptr<VoteRequester> _voteRequester; // (M) // Event that the election code will signal when the in-progress election completes. |