diff options
author | matt dannenberg <matt.dannenberg@10gen.com> | 2015-08-11 11:39:01 -0400 |
---|---|---|
committer | matt dannenberg <matt.dannenberg@10gen.com> | 2015-08-17 04:33:41 -0400 |
commit | 01f2a40e331d519e4875ce6be2d1416994ca0e18 (patch) | |
tree | 93089f4610e823b37ee58d9a1ffa715065077fe2 /jstests/core | |
parent | 71545d3b8ef60bf733ebc90769a93cea695b55fd (diff) | |
download | mongo-01f2a40e331d519e4875ce6be2d1416994ca0e18.tar.gz |
SERVER-19833 Error out when attempting to do committed reads on non-supported storage engines
Diffstat (limited to 'jstests/core')
-rw-r--r-- | jstests/core/read_majority_mmap.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jstests/core/read_majority_mmap.js b/jstests/core/read_majority_mmap.js new file mode 100644 index 00000000000..367908eea42 --- /dev/null +++ b/jstests/core/read_majority_mmap.js @@ -0,0 +1,12 @@ +// Ensure read majority works on a standalone node, even with non-snapshotting storage engines. + +(function() { +"use strict"; + +var name = "readMajority"; +db = db.getSiblingDB(name); +assert.writeOK(db.foo.insert({x: 3})); + +assert.commandWorked(db.foo.runCommand({find: name, readConcern: {level: "majority"}})); + +}()); |