diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-08-02 18:01:47 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-08-02 18:25:53 -0400 |
commit | 188a7e28f7198a833230acf774584e3f0fabef80 (patch) | |
tree | ab996ab419ab4ed9635bed5b5e523ab2dd38977f | |
parent | 785ff824269553c122b029118e90181d0eaee047 (diff) | |
download | mongo-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.js | 2 |
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 + |