diff options
Diffstat (limited to 'src/mongo/db/repl/repl_set_request_votes_args.h')
-rw-r--r-- | src/mongo/db/repl/repl_set_request_votes_args.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/repl/repl_set_request_votes_args.h b/src/mongo/db/repl/repl_set_request_votes_args.h index dfecbdba4d4..1dc74eb4f12 100644 --- a/src/mongo/db/repl/repl_set_request_votes_args.h +++ b/src/mongo/db/repl/repl_set_request_votes_args.h @@ -47,6 +47,7 @@ public: long long getTerm() const; long long getCandidateIndex() const; long long getConfigVersion() const; + long long getConfigTerm() const; OpTime getLastDurableOpTime() const; bool isADryRun() const; @@ -58,7 +59,9 @@ private: long long _term = -1; // Current known term of the command issuer. // replSet config index of the member who sent the replSetRequestVotesCmd. long long _candidateIndex = -1; - long long _cfgver = -1; // replSet config version known to the command issuer. + long long _cfgver = -1; // replSet config version known to the command issuer. + // replSet config term known to the command issuer. + long long _cfgterm = OpTime::kUninitializedTerm; OpTime _lastDurableOpTime; // The last known durable op of the command issuer. bool _dryRun = false; // Indicates this is a pre-election check when true. }; |