diff options
author | Judah Schvimer <judah@mongodb.com> | 2018-04-30 16:12:53 -0400 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2018-05-01 13:27:28 -0400 |
commit | 0ab171caf6aaebf044e52d3f491f7f13e6858e9a (patch) | |
tree | 958f255b2503313b33f460ef0ff04f4043f75b8b /src/mongo/db/repl/topology_coordinator.h | |
parent | 431cc09caaa8150ea8d7725bfaa14cc612d0d62d (diff) | |
download | mongo-0ab171caf6aaebf044e52d3f491f7f13e6858e9a.tar.gz |
SERVER-34716 improve ReplSetGetStatus unittests
Diffstat (limited to 'src/mongo/db/repl/topology_coordinator.h')
-rw-r--r-- | src/mongo/db/repl/topology_coordinator.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/topology_coordinator.h b/src/mongo/db/repl/topology_coordinator.h index d505dd3a90e..fd630827579 100644 --- a/src/mongo/db/repl/topology_coordinator.h +++ b/src/mongo/db/repl/topology_coordinator.h @@ -751,7 +751,8 @@ public: // Sets _currentPrimaryIndex to the given index. Should only be used in unit tests! // TODO(spencer): Remove this once we can easily call for an election in unit tests to // set the current primary. - void _setCurrentPrimaryForTest(int primaryIndex); + void setCurrentPrimary_forTest(int primaryIndex, + const Timestamp& electionTime = Timestamp(0, 0)); // Returns _electionTime. Only used in unittests. Timestamp getElectionTime() const; |