summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMisha Tyulenev <misha@mongodb.com>2018-12-27 14:02:28 -0500
committerMisha Tyulenev <misha@mongodb.com>2018-12-27 14:03:27 -0500
commitdd07fc6a7ab1ccf65198b789db0da0d6d630d907 (patch)
tree80e3f4912a47aab110c80985321411a698daedee /src
parent2760fd38a929ae790c6fbb7ffbb7ed94b387fc61 (diff)
downloadmongo-dd07fc6a7ab1ccf65198b789db0da0d6d630d907.tar.gz
SERVER-38196 Coverity analysis defect 105128: Unchecked return value
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/s/migration_destination_manager.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/s/migration_destination_manager.cpp b/src/mongo/db/s/migration_destination_manager.cpp
index f3a15afb1ad..903b01d5901 100644
--- a/src/mongo/db/s/migration_destination_manager.cpp
+++ b/src/mongo/db/s/migration_destination_manager.cpp
@@ -898,7 +898,9 @@ void MigrationDestinationManager::_migrateDriver(OperationContext* opCtx,
break;
}
- _applyMigrateOp(opCtx, _nss, min, max, shardKeyPattern, res, &lastOpApplied);
+ if (_applyMigrateOp(opCtx, _nss, min, max, shardKeyPattern, res, &lastOpApplied)) {
+ continue;
+ }
const int maxIterations = 3600 * 50;