summaryrefslogtreecommitdiff
path: root/jstests/sharding/stats.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2012-12-10 16:28:37 -0500
committerRandolph Tan <randolph@10gen.com>2012-12-11 13:30:47 -0500
commit93cda0b81d954f1c0184bb15691105d90b9cb0c3 (patch)
tree739dd80d28cc32db9a5712dc22461cb9b33e333d /jstests/sharding/stats.js
parentb1ba986ac53f472f1b1c484ea5187a79d4af97fa (diff)
downloadmongo-93cda0b81d954f1c0184bb15691105d90b9cb0c3.tar.gz
SERVER-7376 migrate deletion not aggressive enough and tied to migrate moves
Put back dfb8e2604409e2879ea975c4c49ba6ffde90d795 and fixed tests.
Diffstat (limited to 'jstests/sharding/stats.js')
-rw-r--r--jstests/sharding/stats.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/sharding/stats.js b/jstests/sharding/stats.js
index 00be2867b2d..7d551128cab 100644
--- a/jstests/sharding/stats.js
+++ b/jstests/sharding/stats.js
@@ -23,7 +23,8 @@ s.adminCommand( { shardcollection : "test.zzz" , key : { _id : 1 } } );
N = 10000;
s.adminCommand( { split : "test.foo" , middle : { _id : N/2 } } )
-s.adminCommand( { moveChunk : "test.foo", find : { _id : 3 } ,to : s.getNonPrimaries( "test" )[0] } )
+s.adminCommand({ moveChunk: "test.foo", find: { _id: 3 },
+ to: s.getNonPrimaries("test")[0], _waitForDelete: true });
for ( i=0; i<N; i++ )
db.foo.insert( { _id : i } )