diff options
author | Randolph Tan <randolph@10gen.com> | 2015-04-10 18:06:07 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2015-05-15 10:11:31 -0400 |
commit | 280fbae9044af29bc63068dbe9c4e7846e9e6517 (patch) | |
tree | 96b6490b5aa9d8ad0facd9356367ecd5f3534a8d /jstests/slow1 | |
parent | f3d242c808ec6c1b7145dd3f084da438829552cb (diff) | |
download | mongo-280fbae9044af29bc63068dbe9c4e7846e9e6517.tar.gz |
SERVER-18044 Make sharding test explicitly set primary shards for databases
Diffstat (limited to 'jstests/slow1')
-rw-r--r-- | jstests/slow1/sharding_multiple_collections.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/slow1/sharding_multiple_collections.js b/jstests/slow1/sharding_multiple_collections.js index 6577e0050fa..922087ba2aa 100644 --- a/jstests/slow1/sharding_multiple_collections.js +++ b/jstests/slow1/sharding_multiple_collections.js @@ -3,8 +3,8 @@ s = new ShardingTest( "multcollections" , 2 , 1 , 1 , { chunksize : 1, enableBalancer : true } ); s.adminCommand( { enablesharding : "test" } ); - db = s.getDB( "test" ) +s.ensurePrimaryShard('test', 'shard0001'); N = 100000 |