summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl
diff options
context:
space:
mode:
authorAli Mir <ali.mir@mongodb.com>2019-10-21 19:14:50 +0000
committerevergreen <evergreen@mongodb.com>2019-10-21 19:14:50 +0000
commit6cca153f9f75ca29f2cdca65124efb4329771882 (patch)
treeaad7221a9a35ffd71233a39e2bbda603e165d638 /src/mongo/db/repl
parent5fac3f5e2dfacf25a6d4251d797bea7e0b808e97 (diff)
downloadmongo-6cca153f9f75ca29f2cdca65124efb4329771882.tar.gz
SERVER-37260 Fix unchecked status in replication_coordinator_test_fixture.cpp and rollback_impl_test.cpp
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r--src/mongo/db/repl/replication_coordinator_test_fixture.cpp2
-rw-r--r--src/mongo/db/repl/rollback_impl_test.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_test_fixture.cpp b/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
index d09d8bdf379..f3a0b72e636 100644
--- a/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
+++ b/src/mongo/db/repl/replication_coordinator_test_fixture.cpp
@@ -332,7 +332,7 @@ void ReplCoordTest::simulateSuccessfulV1ElectionWithoutExitingDrainMode(Date_t e
log() << request.target.toString() << " processing " << request.cmdObj;
ReplSetHeartbeatArgsV1 hbArgs;
Status status = hbArgs.initialize(request.cmdObj);
- if (hbArgs.initialize(request.cmdObj).isOK()) {
+ if (status.isOK()) {
ReplSetHeartbeatResponse hbResp;
hbResp.setSetName(rsConfig.getReplSetName());
hbResp.setState(MemberState::RS_SECONDARY);
diff --git a/src/mongo/db/repl/rollback_impl_test.cpp b/src/mongo/db/repl/rollback_impl_test.cpp
index 4d19ac681fc..817f7ee3101 100644
--- a/src/mongo/db/repl/rollback_impl_test.cpp
+++ b/src/mongo/db/repl/rollback_impl_test.cpp
@@ -827,7 +827,7 @@ TEST_F(RollbackImplTest,
// Run rollback.
auto status = _rollback->runRollback(_opCtx.get());
- ASSERT_EQUALS(ErrorCodes::ShutdownInProgress, _rollback->runRollback(_opCtx.get()));
+ ASSERT_EQUALS(ErrorCodes::ShutdownInProgress, status.code());
ASSERT(_recoveredToStableTimestamp);
ASSERT(_recoveredFromOplog);
ASSERT_FALSE(_triggeredOpObserver);