diff options
author | Randolph Tan <randolph@10gen.com> | 2017-05-25 13:57:57 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2017-05-25 16:25:32 -0400 |
commit | 0b5217dfddf7f5f3253a724fb7debbaa5f3b3e1f (patch) | |
tree | cf614392b022503e98fdc04cea81e02962620377 /jstests/libs | |
parent | e761432fa04c0a6bdf4b38d4d6268f492825b903 (diff) | |
download | mongo-0b5217dfddf7f5f3253a724fb7debbaa5f3b3e1f.tar.gz |
SERVER-29362 chunk_manipulation_util.js should support v3.4 currrentOp format
Diffstat (limited to 'jstests/libs')
-rw-r--r-- | jstests/libs/chunk_manipulation_util.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/libs/chunk_manipulation_util.js b/jstests/libs/chunk_manipulation_util.js index cdd746a95c3..75a350d6bbc 100644 --- a/jstests/libs/chunk_manipulation_util.js +++ b/jstests/libs/chunk_manipulation_util.js @@ -126,7 +126,8 @@ function waitForMoveChunkStep(shardConnection, stepNumber) { var in_progress = admin.currentOp().inprog; for (var i = 0; i < in_progress.length; ++i) { var op = in_progress[i]; - if (op.command && op.command.moveChunk) { + if (op.query && op.query.moveChunk || // compatibility with v3.4, remove after v3.6 + op.command && op.command.moveChunk) { // Note: moveChunk in join mode will not have the "step" message. So keep on // looking if searchString is not found. if (op.msg && op.msg.startsWith(searchString)) { |