diff options
author | Louis Williams <louis.williams@mongodb.com> | 2018-05-08 17:59:44 -0400 |
---|---|---|
committer | Louis Williams <louis.williams@mongodb.com> | 2018-05-10 10:24:34 -0400 |
commit | 25202711c79bb4da07dd2ec320b8350db2fd2d7d (patch) | |
tree | 40227a7c605d2e49b86bc915c205596fd53fd622 | |
parent | 67904de43ba8f5b036e76f85a74e97d9f89627f3 (diff) | |
download | mongo-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.js | 4 |
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. |