diff options
Diffstat (limited to 'jstests/sharding/sharding_migrate_cursor1.js')
-rw-r--r-- | jstests/sharding/sharding_migrate_cursor1.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/sharding_migrate_cursor1.js b/jstests/sharding/sharding_migrate_cursor1.js index 86814ed17a8..0edeb2a0ac9 100644 --- a/jstests/sharding/sharding_migrate_cursor1.js +++ b/jstests/sharding/sharding_migrate_cursor1.js @@ -36,7 +36,7 @@ s.adminCommand( { shardcollection : "test.foo" , key : { _id : 1 } } ); assert.lt( numChunks , s.config.chunks.find().count() , "initial 1" ); -primary = s.getServer( "test" ).getDB( "test" ).foo; +primary = s.getPrimaryShard( "test" ).getDB( "test" ).foo; secondaryName = s.getOther( primary.name ); secondary = secondaryName.getDB( "test" ).foo; |