summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp b/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
index c8bb9b6c08c..b497d407730 100644
--- a/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
+++ b/src/mongo/db/repl/replication_coordinator_impl_heartbeat_v1_test.cpp
@@ -786,7 +786,8 @@ TEST_F(ReplCoordHBV1Test, IgnoreTheContentsOfMetadataWhenItsReplicaSetIdDoesNotM
rsConfig.getConfigVersion(),
unexpectedId,
1,
- -1);
+ -1,
+ true);
uassertStatusOK(metadata.writeToMetadata(&responseBuilder));
heartbeatResponse = makeResponseStatus(responseBuilder.obj());
@@ -869,9 +870,10 @@ TEST_F(ReplCoordHBV1Test,
{commitPoint, Date_t() + Seconds(commitPoint.getSecs())}, // committed OpTime
commitPoint, // visibleOpTime
config.getConfigVersion(),
- {}, // replset id
- 1, // currentPrimaryIndex,
- 1); // currentSyncSourceIndex
+ {}, // replset id
+ 1, // currentPrimaryIndex,
+ 1, // currentSyncSourceIndex
+ true); // isPrimary
auto net = getNet();
BSONObjBuilder responseBuilder;
@@ -944,9 +946,10 @@ TEST_F(ReplCoordHBV1Test, LastCommittedOpTimeOnlyUpdatesFromHeartbeatIfNotInStar
{commitPoint, Date_t() + Seconds(commitPoint.getSecs())}, // committed OpTime
commitPoint, // visibleOpTime
config.getConfigVersion(),
- {}, // replset id
- 1, // currentPrimaryIndex,
- 1); // currentSyncSourceIndex
+ {}, // replset id
+ 1, // currentPrimaryIndex,
+ 1, // currentSyncSourceIndex
+ true); // isPrimary
auto net = getNet();
BSONObjBuilder responseBuilder;