summaryrefslogtreecommitdiff
path: root/jstests/libs
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2015-12-02 11:51:41 -0500
committerDianna Hohensee <dianna.hohensee@10gen.com>2016-01-22 15:09:45 -0500
commitd96a296a65826a6ed6f9baf37849252866ca6970 (patch)
tree6efc90da8d2e4ae7a1a976a4c39ef5d40dc5fe55 /jstests/libs
parentfe64deb8f668f885f428e29d1aaa58a2d3f0be68 (diff)
downloadmongo-d96a296a65826a6ed6f9baf37849252866ca6970.tar.gz
SERVER-21382 fixing sharding migration to transfer only document deletions relevant to the chunk being migrated, not every deletion
(cherry picked from commit 3663e004dfc2f73b82b3d88b5fa1ac6b7dcd1d33)
Diffstat (limited to 'jstests/libs')
-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;
+ }
}
}