summaryrefslogtreecommitdiff
path: root/jstests/sharding/count2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/count2.js')
-rw-r--r--jstests/sharding/count2.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/sharding/count2.js b/jstests/sharding/count2.js
index 387bee9f8e3..cbef67a2db9 100644
--- a/jstests/sharding/count2.js
+++ b/jstests/sharding/count2.js
@@ -28,7 +28,10 @@ assert.eq( 3, db2.count( { name : { $gte: "aaa" , $lt: "ddd" } } ) , "initial co
s1.printChunks( "test.foo" );
-s1.adminCommand( { movechunk : "test.foo" , find : { name : "aaa" } , to : s1.getOther( s1.getServer( "test" ) ).name, _waitForDelete : true });
+s1.adminCommand( { movechunk : "test.foo",
+ find : { name : "aaa" },
+ to : s1.getOther( s1.getPrimaryShard( "test" ) ).name,
+ _waitForDelete : true });
assert.eq( 3, db1.count( { name : { $gte: "aaa" , $lt: "ddd" } } ) , "post count mongos1" );