diff options
Diffstat (limited to 'jstests/sharding/count1.js')
-rw-r--r-- | jstests/sharding/count1.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/count1.js b/jstests/sharding/count1.js index 3d9f3f874be..a79d3ebfdd4 100644 --- a/jstests/sharding/count1.js +++ b/jstests/sharding/count1.js @@ -32,7 +32,7 @@ s.adminCommand( { enablesharding : "test" } ); s.ensurePrimaryShard('test', 'shard0001'); s.adminCommand( { shardcollection : "test.foo" , key : { name : 1 } } ); -primary = s.getServer( "test" ).getDB( "test" ); +primary = s.getPrimaryShard( "test" ).getDB( "test" ); secondary = s.getOther( primary ).getDB( "test" ); assert.eq( 1 , s.config.chunks.count() , "sanity check A" ); |