summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2016-08-02 18:01:47 -0400
committerEsha Maharishi <esha.maharishi@mongodb.com>2016-08-02 18:25:53 -0400
commit188a7e28f7198a833230acf774584e3f0fabef80 (patch)
treeab996ab419ab4ed9635bed5b5e523ab2dd38977f
parent785ff824269553c122b029118e90181d0eaee047 (diff)
downloadmongo-188a7e28f7198a833230acf774584e3f0fabef80.tar.gz
SERVER-25418 in shard_aware_on_config_election.js, write to config server through mongos not directly
-rw-r--r--jstests/sharding/shard_aware_on_config_election.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/shard_aware_on_config_election.js b/jstests/sharding/shard_aware_on_config_election.js
index ec66ea9687a..4695cb09ede 100644
--- a/jstests/sharding/shard_aware_on_config_election.js
+++ b/jstests/sharding/shard_aware_on_config_election.js
@@ -77,7 +77,7 @@
jsTest.log("Manually unset the state field from " + rst.name + "'s entry in config.shards");
// Use writeConcern: { w: majority } so that the write cannot be rolled back when the
// current primary is stepped down.
- assert.writeOK(st.c0.getDB("config").getCollection("shards").update(
+ assert.writeOK(st.s.getDB("config").getCollection("shards").update(
{"_id": rst.name}, {$unset: {"state": ""}}, {writeConcern: {w: "majority"}}));
jsTest.log("Restart " + rst.name +