diff options
Diffstat (limited to 'jstests/sharding/parallel.js')
-rw-r--r-- | jstests/sharding/parallel.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/parallel.js b/jstests/sharding/parallel.js index ffaa967dba6..be2aab23d17 100644 --- a/jstests/sharding/parallel.js +++ b/jstests/sharding/parallel.js @@ -4,6 +4,7 @@ s = new ShardingTest( "parallel" , numShards , 2 , 2 , { sync : true } ); s.setBalancer( false ) s.adminCommand( { enablesharding : "test" } ); +s.ensurePrimaryShard('test', 'shard0001'); s.adminCommand( { shardcollection : "test.foo" , key : { _id : 1 } } ); db = s.getDB( "test" ); |