summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2018-05-08 17:59:44 -0400
committerLouis Williams <louis.williams@mongodb.com>2018-05-10 10:24:34 -0400
commit25202711c79bb4da07dd2ec320b8350db2fd2d7d (patch)
tree40227a7c605d2e49b86bc915c205596fd53fd622
parent67904de43ba8f5b036e76f85a74e97d9f89627f3 (diff)
downloadmongo-25202711c79bb4da07dd2ec320b8350db2fd2d7d.tar.gz
SERVER-34804 Don't run secondary_reads_timestamp_visibility on storage engines that don't support snapshot reads
-rw-r--r--jstests/replsets/secondary_reads_timestamp_visibility.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/replsets/secondary_reads_timestamp_visibility.js b/jstests/replsets/secondary_reads_timestamp_visibility.js
index 1653b8fc066..444693e040f 100644
--- a/jstests/replsets/secondary_reads_timestamp_visibility.js
+++ b/jstests/replsets/secondary_reads_timestamp_visibility.js
@@ -19,6 +19,10 @@
let primaryDB = secondaryReadsTest.getPrimaryDB();
let secondaryDB = secondaryReadsTest.getSecondaryDB();
+ if (!primaryDB.serverStatus().storageEngine.supportsSnapshotReadConcern) {
+ secondaryReadsTest.stop();
+ return;
+ }
let primaryColl = primaryDB.getCollection(collName);
// Create a collection and an index. Insert some data.