diff options
Diffstat (limited to 'jstests/sharding/limit_push.js')
-rw-r--r-- | jstests/sharding/limit_push.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/sharding/limit_push.js b/jstests/sharding/limit_push.js index b1583cc21b7..5e7f1c32ab3 100644 --- a/jstests/sharding/limit_push.js +++ b/jstests/sharding/limit_push.js @@ -17,7 +17,10 @@ s.adminCommand( { shardcollection : "test.limit_push" , key : { x : 1 } } ); // Now split the and move the data between the shards s.adminCommand( { split : "test.limit_push", middle : { x : 50 }} ); -s.adminCommand( { moveChunk: "test.limit_push", find : { x : 51}, to : s.getOther( s.getServer( "test" ) ).name, _waitForDelete : true }); +s.adminCommand( { moveChunk: "test.limit_push", + find : { x : 51}, + to : s.getOther( s.getPrimaryShard( "test" ) ).name, + _waitForDelete : true }); // Check that the chunck have split correctly assert.eq( 2 , s.config.chunks.count() , "wrong number of chunks"); |