diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r-- | jstests/noPassthroughWithMongod/create_indexes_shell_helper.js | 9 | ||||
-rw-r--r-- | jstests/noPassthroughWithMongod/default_read_pref.js | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js b/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js index 01f891b0810..6d9937139ae 100644 --- a/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js +++ b/jstests/noPassthroughWithMongod/create_indexes_shell_helper.js @@ -41,9 +41,18 @@ getMaxWireVersion: function() { return mongo.getMaxWireVersion(); }, + isReplicaSetMember: function() { + return mongo.isReplicaSetMember(); + }, + isMongos: function() { + return mongo.isMongos(); + }, isCausalConsistency: function() { return false; }, + getClusterTime: function() { + return null; + }, }; db._mongo = mockMongo; diff --git a/jstests/noPassthroughWithMongod/default_read_pref.js b/jstests/noPassthroughWithMongod/default_read_pref.js index b5171f559ff..e5daba20d8a 100644 --- a/jstests/noPassthroughWithMongod/default_read_pref.js +++ b/jstests/noPassthroughWithMongod/default_read_pref.js @@ -27,9 +27,18 @@ getMaxWireVersion: function() { return mongo.getMaxWireVersion(); }, + isReplicaSetMember: function() { + return mongo.isReplicaSetMember(); + }, + isMongos: function() { + return mongo.isMongos(); + }, isCausalConsistency: function() { return false; }, + getClusterTime: function() { + return null; + }, }; db._session = new _DummyDriverSession(db._mongo); |