diff options
author | Ali Mir <ali.mir@mongodb.com> | 2020-08-27 14:07:45 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-09 23:29:23 +0000 |
commit | 2b5dc35f019a3606c2dfa845cdfb320ffbac8014 (patch) | |
tree | 0b7c0bd55ba7b745986e7a248835fcfca1316109 /jstests/replsets/maintenance2.js | |
parent | ee106b978c7466bdd325cfb9f3f029d3769b1c1b (diff) | |
download | mongo-2b5dc35f019a3606c2dfa845cdfb320ffbac8014.tar.gz |
SERVER-50581 Replace setSlaveOk and getSlaveOk occurrences in jstests
Diffstat (limited to 'jstests/replsets/maintenance2.js')
-rw-r--r-- | jstests/replsets/maintenance2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/maintenance2.js b/jstests/replsets/maintenance2.js index 2b904346945..c62d6bf17b6 100644 --- a/jstests/replsets/maintenance2.js +++ b/jstests/replsets/maintenance2.js @@ -40,7 +40,7 @@ secondaries.forEach(function(secondary) { assert.eq(stats.myState, 3, "Secondary should be in recovering state."); print("count should fail in recovering state..."); - secondary.slaveOk = true; + secondary.setSecondaryOk(); assert.commandFailed(secondary.getDB("foo").runCommand({count: "foo"})); // unset maintenance mode when done |