diff options
Diffstat (limited to 'jstests/sharding/moveprimary_ignore_sharded.js')
-rw-r--r-- | jstests/sharding/moveprimary_ignore_sharded.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/sharding/moveprimary_ignore_sharded.js b/jstests/sharding/moveprimary_ignore_sharded.js index c5fda358840..c378eb5856a 100644 --- a/jstests/sharding/moveprimary_ignore_sharded.js +++ b/jstests/sharding/moveprimary_ignore_sharded.js @@ -23,7 +23,9 @@ assert.writeOK(mongosA.getCollection("bar.coll2").insert({ hello : "world" })); // Enable sharding printjson( adminA.runCommand({ enableSharding : "foo" }) ); +st.ensurePrimaryShard('foo', 'shard0001'); printjson( adminA.runCommand({ enableSharding : "bar" }) ); +st.ensurePrimaryShard('bar', 'shard0000'); // Setup three collections per-db // 0 : not sharded |