diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2016-06-30 10:04:53 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2016-06-30 11:47:46 -0400 |
commit | 11584b44f94ab93c02e75b4fb392eca43aa4a90c (patch) | |
tree | a7a91bd2feaee0a156264097c7d5c2c5b936b401 /jstests/sharding/regex_targeting.js | |
parent | 1e765db8363ba36f31c7c271483f6f80103f4fef (diff) | |
download | mongo-11584b44f94ab93c02e75b4fb392eca43aa4a90c.tar.gz |
SERVER-24810 swap assert movePrimary commands with ShardingTest::ensurePrimaryShard that is more robust
Diffstat (limited to 'jstests/sharding/regex_targeting.js')
-rw-r--r-- | jstests/sharding/regex_targeting.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/regex_targeting.js b/jstests/sharding/regex_targeting.js index 33411447721..14eaf0b53de 100644 --- a/jstests/sharding/regex_targeting.js +++ b/jstests/sharding/regex_targeting.js @@ -26,7 +26,7 @@ var collNested = mongos.getCollection("foo.barNested"); var collHashed = mongos.getCollection("foo.barHashed"); assert.commandWorked(admin.runCommand({enableSharding: coll.getDB().toString()})); -admin.runCommand({movePrimary: coll.getDB().toString(), to: shards[0]._id}); +st.ensurePrimaryShard(coll.getDB().toString(), shards[0]._id); // // Split the collection so that "abcde-0" and "abcde-1" go on different shards when possible |