diff options
Diffstat (limited to 'jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js')
-rw-r--r-- | jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js b/jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js index b0bd0f59e8c..a11f8dbc694 100644 --- a/jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js +++ b/jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js @@ -39,7 +39,7 @@ jsTest.log('Config nodes up: 1 of 3, shard nodes up: 1 of 2: ' + 'Only queries will work (no shard primary)'); st.rs0.stop(0); st.restartMongos(0); -st.s0.setSlaveOk(true); +st.s0.setSecondaryOk(); assert.eq([{_id: 0, count: 3}], st.s0.getDB('TestDB').TestColl.find().toArray()); jsTest.log('Config nodes up: 1 of 3, shard nodes up: 0 of 2: ' + |