summaryrefslogtreecommitdiff
path: root/jstests/noPassthroughWithMongod
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2017-10-14 21:54:02 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2017-10-14 21:54:02 -0400
commit0ed1b71a50b45b93f0952e1482643c0d9216731d (patch)
tree6ae06f4d49aa2b106dfb08fd48f3e52d397ed341 /jstests/noPassthroughWithMongod
parent2c5511c8c411c70ac1063d1209764e71f83d0b1a (diff)
downloadmongo-0ed1b71a50b45b93f0952e1482643c0d9216731d.tar.gz
SERVER-31456 Set initial{Cluster,Operation}Time in concurrency suite.
Ensures that the FSM worker threads are guaranteed to observe the effects of the $config.setup() function being called since they'll specify an afterClusterTime beyond that point.
Diffstat (limited to 'jstests/noPassthroughWithMongod')
-rw-r--r--jstests/noPassthroughWithMongod/create_indexes_shell_helper.js9
-rw-r--r--jstests/noPassthroughWithMongod/default_read_pref.js9
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);