diff options
Diffstat (limited to 'jstests/replsets/step_down_on_secondary.js')
-rw-r--r-- | jstests/replsets/step_down_on_secondary.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/step_down_on_secondary.js b/jstests/replsets/step_down_on_secondary.js index 64fcf73c3a2..5e8933d9017 100644 --- a/jstests/replsets/step_down_on_secondary.js +++ b/jstests/replsets/step_down_on_secondary.js @@ -93,7 +93,7 @@ jsTestLog("Do a read that hits a prepare conflict on the old primary"); const wTPrintPrepareConflictLogFailPoint = configureFailPoint(primary, "WTPrintPrepareConflictLog"); const joinReadThread = startParallelShell(() => { - db.getMongo().setSlaveOk(true); + db.getMongo().setSecondaryOk(); oldPrimaryDB = db.getSiblingDB(TestData.dbName); assert.commandFailedWithCode(oldPrimaryDB.runCommand({ |