summaryrefslogtreecommitdiff
path: root/jstests/libs/chunk_manipulation_util.js
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2015-12-02 11:51:41 -0500
committerDianna Hohensee <dianna.hohensee@10gen.com>2015-12-22 09:12:08 -0500
commit3663e004dfc2f73b82b3d88b5fa1ac6b7dcd1d33 (patch)
treed46813559c37225f31768042e2bd2a4ba8ce1ba0 /jstests/libs/chunk_manipulation_util.js
parent07b2e02ffddbd9998b8c738895f3fae85b592176 (diff)
downloadmongo-3663e004dfc2f73b82b3d88b5fa1ac6b7dcd1d33.tar.gz
SERVER-21382 fixing sharding migration to transfer only document deletions relevant to the chunk being migrated, not every deletion
Diffstat (limited to 'jstests/libs/chunk_manipulation_util.js')
-rw-r--r--jstests/libs/chunk_manipulation_util.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/libs/chunk_manipulation_util.js b/jstests/libs/chunk_manipulation_util.js
index b1e4d5a90e1..8ad487667cf 100644
--- a/jstests/libs/chunk_manipulation_util.js
+++ b/jstests/libs/chunk_manipulation_util.js
@@ -201,7 +201,7 @@ function waitForMigrateStep( shardConnection, stepNumber ) {
admin = shardConnection.getDB( 'admin' );
assert( stepNumber >= 1);
- assert( stepNumber <= 5 );
+ assert( stepNumber <= 5);
var msg = (
'Migrate thread on ' + shardConnection.shardName
@@ -215,7 +215,11 @@ function waitForMigrateStep( shardConnection, stepNumber ) {
for ( var i = 0; i < in_progress.length; ++i ) {
var op = in_progress[i];
if ( op.desc && op.desc === 'migrateThread' ) {
- return op.msg.startsWith( searchString );
+ if (op.hasOwnProperty('msg')) {
+ return op.msg.startsWith( searchString );
+ } else {
+ return false;
+ }
}
}