summaryrefslogtreecommitdiff
path: root/jstests/sharding/shard_keycount.js
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2015-04-10 18:06:07 -0400
committerRandolph Tan <randolph@10gen.com>2015-05-15 10:11:31 -0400
commit280fbae9044af29bc63068dbe9c4e7846e9e6517 (patch)
tree96b6490b5aa9d8ad0facd9356367ecd5f3534a8d /jstests/sharding/shard_keycount.js
parentf3d242c808ec6c1b7145dd3f084da438829552cb (diff)
downloadmongo-280fbae9044af29bc63068dbe9c4e7846e9e6517.tar.gz
SERVER-18044 Make sharding test explicitly set primary shards for databases
Diffstat (limited to 'jstests/sharding/shard_keycount.js')
-rw-r--r--jstests/sharding/shard_keycount.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/sharding/shard_keycount.js b/jstests/sharding/shard_keycount.js
index e2bedcb5bdb..408774785c8 100644
--- a/jstests/sharding/shard_keycount.js
+++ b/jstests/sharding/shard_keycount.js
@@ -17,6 +17,7 @@ for(var i = 0; i < 10; i++){
// Enable sharding on DB
s.adminCommand( { enablesharding : dbName } );
+s.ensurePrimaryShard(dbName, 'shard0001');
// Enable sharding on collection
s.adminCommand( { shardcollection : ns, key : { _id : 1 } } );