diff options
Diffstat (limited to 'jstests/sharding/key_many.js')
-rw-r--r-- | jstests/sharding/key_many.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/key_many.js b/jstests/sharding/key_many.js index 285647bf3cd..c671e691f94 100644 --- a/jstests/sharding/key_many.js +++ b/jstests/sharding/key_many.js @@ -72,7 +72,7 @@ var s = new ShardingTest({name: "key_many", shards: 2}); assert.commandWorked(s.s0.adminCommand({enableSharding: 'test'})); - s.ensurePrimaryShard('test', 'shard0001'); + s.ensurePrimaryShard('test', s.shard1.shardName); var db = s.getDB('test'); var primary = s.getPrimaryShard("test").getDB("test"); |