diff options
author | Ali Mir <ali.mir@mongodb.com> | 2020-08-11 11:34:10 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-24 20:59:10 +0000 |
commit | 45924f56e67166a9bacc2f76516a9bc1ae37b53e (patch) | |
tree | 8e7171d774b2cb1109aba2ab0836b450a18f8ef8 /jstests/noPassthroughWithMongod | |
parent | 4419a5c2a0d099b40b2155dd4def37802286cb7c (diff) | |
download | mongo-45924f56e67166a9bacc2f76516a9bc1ae37b53e.tar.gz |
SERVER-49990 Alias setSlaveOk() and getSlaveOk() shell helpers
(cherry picked from commit d6fe50035aff8026937dff9d8544ff213ad05152)
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r-- | jstests/noPassthroughWithMongod/create_indexes_shell_helper.js | 2 | ||||
-rw-r--r-- | jstests/noPassthroughWithMongod/default_read_pref.js | 2 |
2 files changed, 2 insertions, 2 deletions
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() { |