summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2018-07-27 09:13:56 -0400
committersmani87 <suganthi.mani@mongodb.com>2018-07-27 12:08:42 -0400
commit285c854b7243653e00f6f7678246fec0e8d7964a (patch)
tree5e3a7bbff7d5f60765a71cc50f80464b65db4e45 /src/mongo/db/repl/replication_coordinator_test_fixture.cpp
parent782aeea024538b2d3a0cc6c18bcd59835ff3a2a4 (diff)
downloadmongo-285c854b7243653e00f6f7678246fec0e8d7964a.tar.gz
SERVER-36050 Remove isV1ElectionProtocol() check.
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_test_fixture.cpp')
-rw-r--r--src/mongo/db/repl/replication_coordinator_test_fixture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_test_fixture.cpp b/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
index 23347464610..7fb82bf5f57 100644
--- a/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
+++ b/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
@@ -240,7 +240,7 @@ void ReplCoordTest::simulateEnoughHeartbeatsForAllNodesUp() {
hbResp.setConfigVersion(rsConfig.getConfigVersion());
hbResp.setAppliedOpTime(OpTime(Timestamp(100, 2), 0));
BSONObjBuilder respObj;
- net->scheduleResponse(noi, net->now(), makeResponseStatus(hbResp.toBSON(true)));
+ net->scheduleResponse(noi, net->now(), makeResponseStatus(hbResp.toBSON()));
} else {
error() << "Black holing unexpected request to " << request.target << ": "
<< request.cmdObj;
@@ -343,7 +343,7 @@ void ReplCoordTest::simulateSuccessfulV1ElectionWithoutExitingDrainMode(Date_t e
hbResp.setAppliedOpTime(opTime);
hbResp.setDurableOpTime(opTime);
hbResp.setConfigVersion(rsConfig.getConfigVersion());
- net->scheduleResponse(noi, net->now(), makeResponseStatus(hbResp.toBSON(true)));
+ net->scheduleResponse(noi, net->now(), makeResponseStatus(hbResp.toBSON()));
} else if (request.cmdObj.firstElement().fieldNameStringData() == "replSetRequestVotes") {
net->scheduleResponse(noi,
net->now(),
@@ -436,7 +436,7 @@ bool ReplCoordTest::consumeHeartbeatV1(const NetworkInterfaceMock::NetworkOperat
hbResp.setConfigVersion(rsConfig.getConfigVersion());
hbResp.setAppliedOpTime(lastApplied);
BSONObjBuilder respObj;
- net->scheduleResponse(noi, net->now(), makeResponseStatus(hbResp.toBSON(true)));
+ net->scheduleResponse(noi, net->now(), makeResponseStatus(hbResp.toBSON()));
return true;
}