summaryrefslogtreecommitdiff
path: root/jstests/libs/chunk_manipulation_util.js
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-06-08 18:35:28 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-06-13 15:19:44 -0400
commit9fd6bc9fb1a9321447efa964b7568da740b23bcf (patch)
treeb9be92ec9e9c3368a6a44f6c637617f703898b3d /jstests/libs/chunk_manipulation_util.js
parent4649ed8d47ac507d195d9fb4204f1cfa40e4e363 (diff)
downloadmongo-9fd6bc9fb1a9321447efa964b7568da740b23bcf.tar.gz
SERVER-24467 Move active migrations tracking to separate class
Diffstat (limited to 'jstests/libs/chunk_manipulation_util.js')
-rw-r--r--jstests/libs/chunk_manipulation_util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/libs/chunk_manipulation_util.js b/jstests/libs/chunk_manipulation_util.js
index dcf46fe4529..c7a121266e6 100644
--- a/jstests/libs/chunk_manipulation_util.js
+++ b/jstests/libs/chunk_manipulation_util.js
@@ -101,8 +101,8 @@ function configureMoveChunkFailPoint(shardConnection, stepNumber, mode) {
migrateStepNames.done,
"incorrect stepNumber",
true);
- var admin = shardConnection.getDB('admin');
- admin.runCommand({configureFailPoint: 'moveChunkHangAtStep' + stepNumber, mode: mode});
+ assert.commandWorked(shardConnection.adminCommand(
+ {configureFailPoint: 'moveChunkHangAtStep' + stepNumber, mode: mode}));
}
//