summaryrefslogtreecommitdiff
path: root/jstests/sharding/remove2.js
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2016-08-11 20:50:01 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2016-08-11 21:07:39 -0400
commitd1223a8ad44d6bc91766f0bd05a08820cdb1fdea (patch)
treecbf51e562e432452193d238abd9f13c84db4ebf4 /jstests/sharding/remove2.js
parent6c6bf0284642a7fe1138888d6c3044a6f4912468 (diff)
downloadmongo-d1223a8ad44d6bc91766f0bd05a08820cdb1fdea.tar.gz
SERVER-22663 Make --shardsvr required for a mongod to be used as a shard
Diffstat (limited to 'jstests/sharding/remove2.js')
-rw-r--r--jstests/sharding/remove2.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/sharding/remove2.js b/jstests/sharding/remove2.js
index d2121511344..4f583a8ab4b 100644
--- a/jstests/sharding/remove2.js
+++ b/jstests/sharding/remove2.js
@@ -118,7 +118,7 @@ rst1.stopSet();
print("Sleeping for 20 seconds to let the other shard's ReplicaSetMonitor time out");
sleep(20000); // 1 failed check should take 10 seconds, sleep for 20 just to be safe
-rst1.startSet();
+rst1.startSet({restart: true});
rst1.initiate();
rst1.awaitReplication();
@@ -166,7 +166,7 @@ print("Sleeping for 60 seconds to let the other shards restart their ReplicaSetM
sleep(60000);
var rst2 = new ReplSetTest({name: rst1.name, nodes: 2, useHostName: true});
-rst2.startSet();
+rst2.startSet({shardsvr: ""});
rst2.initiate();
rst2.awaitReplication();
@@ -186,7 +186,7 @@ rst2.stopSet();
print("Sleeping for 60 seconds to let the other shards restart their ReplicaSetMonitors");
sleep(60000);
-rst1.startSet();
+rst1.startSet({restart: true});
rst1.initiate();
rst1.awaitReplication();