diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2015-06-11 09:47:34 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2015-06-16 11:56:16 -0400 |
commit | 64573bc33c058231bed22bd5fd44c609431b5a62 (patch) | |
tree | 6daab898e0eb28cb37ac68621f7f24baeb8297af /src/mongo/db/repl/vote_requester.h | |
parent | 22dd61cfe60e05b13f9bb92aee3cb4660392435b (diff) | |
download | mongo-64573bc33c058231bed22bd5fd44c609431b5a62.tar.gz |
SERVER-18385 add DryRun support to RequestVotes, VoteRequester, and TopologyCoordinator
Diffstat (limited to 'src/mongo/db/repl/vote_requester.h')
-rw-r--r-- | src/mongo/db/repl/vote_requester.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/db/repl/vote_requester.h b/src/mongo/db/repl/vote_requester.h index a1659349bea..a5102192ebd 100644 --- a/src/mongo/db/repl/vote_requester.h +++ b/src/mongo/db/repl/vote_requester.h @@ -63,6 +63,7 @@ namespace repl { Algorithm(const ReplicaSetConfig& rsConfig, long long candidateId, long long term, + bool dryRun, OpTime lastOplogEntry); virtual ~Algorithm(); virtual std::vector<RemoteCommandRequest> getRequests() const; @@ -82,6 +83,7 @@ namespace repl { const ReplicaSetConfig _rsConfig; const long long _candidateId; const long long _term; + bool _dryRun = false; // this bool indicates this is a mock election when true const OpTime _lastOplogEntry; std::vector<HostAndPort> _targets; bool _staleTerm = false; @@ -106,6 +108,7 @@ namespace repl { const ReplicaSetConfig& rsConfig, long long candidateId, long long term, + bool dryRun, OpTime lastOplogEntry, const stdx::function<void ()>& onCompletion = stdx::function<void ()>()); |