summaryrefslogtreecommitdiff
path: root/jstests/sharding/limit_push.js
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2016-02-26 10:26:54 -0500
committerDianna Hohensee <dianna.hohensee@10gen.com>2016-02-26 17:10:54 -0500
commit66746f4654189fa633066f2a353c66279d3cadab (patch)
tree3e48a760d220b46d6c40d143f85c920feeb630c6 /jstests/sharding/limit_push.js
parent7f7a64a1d6ef791d3b111245301d73902e9e4875 (diff)
downloadmongo-66746f4654189fa633066f2a353c66279d3cadab.tar.gz
SERVER-22870 rename getServerName and getServer
Diffstat (limited to 'jstests/sharding/limit_push.js')
-rw-r--r--jstests/sharding/limit_push.js5
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");