From 45924f56e67166a9bacc2f76516a9bc1ae37b53e Mon Sep 17 00:00:00 2001 From: Ali Mir Date: Tue, 11 Aug 2020 11:34:10 -0400 Subject: SERVER-49990 Alias setSlaveOk() and getSlaveOk() shell helpers (cherry picked from commit d6fe50035aff8026937dff9d8544ff213ad05152) --- jstests/noPassthroughWithMongod/create_indexes_shell_helper.js | 2 +- jstests/noPassthroughWithMongod/default_read_pref.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'jstests/noPassthroughWithMongod') diff --git a/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js b/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js index 61f38ce4b94..1d7b2c6f82a 100644 --- a/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js +++ b/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js @@ -12,7 +12,7 @@ try { writeMode: function() { return "commands"; }, - getSlaveOk: function() { + getSecondaryOk: function() { return true; }, runCommand: function(db, cmd, opts) { diff --git a/jstests/noPassthroughWithMongod/default_read_pref.js b/jstests/noPassthroughWithMongod/default_read_pref.js index 12e8962a0a7..6ff888c1c8c 100644 --- a/jstests/noPassthroughWithMongod/default_read_pref.js +++ b/jstests/noPassthroughWithMongod/default_read_pref.js @@ -8,7 +8,7 @@ var mongo = db.getMongo(); try { var commandsRan = []; db._mongo = { - getSlaveOk: function() { + getSecondaryOk: function() { return false; }, getReadPrefMode: function() { -- cgit v1.2.1