summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/topology_coordinator.h
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2018-04-30 16:12:53 -0400
committerJudah Schvimer <judah@mongodb.com>2018-05-01 13:27:28 -0400
commit0ab171caf6aaebf044e52d3f491f7f13e6858e9a (patch)
tree958f255b2503313b33f460ef0ff04f4043f75b8b /src/mongo/db/repl/topology_coordinator.h
parent431cc09caaa8150ea8d7725bfaa14cc612d0d62d (diff)
downloadmongo-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.h3
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;