diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-07-11 11:56:21 -0400 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2017-07-11 13:36:33 -0400 |
commit | eb43e76f419566c24624067edc6ae723ac57865f (patch) | |
tree | fb47636f447044c9a11dae2dd45b40ad697ab976 | |
parent | dbfb143d4b77228d6e27432a16e9afc6c3c4c3f5 (diff) | |
download | mongo-eb43e76f419566c24624067edc6ae723ac57865f.tar.gz |
SERVER-30067 Use ensurePrimaryShard instead of movePrimary in mongos_validate_writes.js
-rw-r--r-- | jstests/sharding/mongos_validate_writes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/mongos_validate_writes.js b/jstests/sharding/mongos_validate_writes.js index a217ee04a7f..23994003be4 100644 --- a/jstests/sharding/mongos_validate_writes.js +++ b/jstests/sharding/mongos_validate_writes.js @@ -69,7 +69,7 @@ coll.ensureIndex({e: 1}); // Deletes need to be across two shards to trigger an error - this is probably an exceptional // case - assert.commandWorked(admin.runCommand({movePrimary: coll.getDB() + "", to: "shard0000"})); + st.ensurePrimaryShard(coll.getDB().getName(), 'shard0000'); assert.commandWorked(admin.runCommand({shardCollection: coll + "", key: {e: 1}})); assert.commandWorked(admin.runCommand({split: coll + "", middle: {e: 0}})); assert.commandWorked(admin.runCommand({moveChunk: coll + "", find: {e: 0}, to: "shard0001"})); |