summaryrefslogtreecommitdiff
path: root/jstests/replsets/rslib.js
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2017-10-20 15:01:53 -0400
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2017-10-20 21:47:10 -0400
commit367d31e1da549c460ae710a8cc280f4c235ab24f (patch)
treee5bab44a1e565e9d349d4da72182d9883c71eebc /jstests/replsets/rslib.js
parent3944af0d50504ff254330aaeb15eae955ffdb91b (diff)
downloadmongo-367d31e1da549c460ae710a8cc280f4c235ab24f.tar.gz
SERVER-31350: Make enableMajorityReadConcern a noop
Diffstat (limited to 'jstests/replsets/rslib.js')
-rw-r--r--jstests/replsets/rslib.js15
1 files changed, 4 insertions, 11 deletions
diff --git a/jstests/replsets/rslib.js b/jstests/replsets/rslib.js
index 2a3be9ba208..ecaf21e5d46 100644
--- a/jstests/replsets/rslib.js
+++ b/jstests/replsets/rslib.js
@@ -306,17 +306,10 @@ var getLastOpTime;
* @param options - The options passed to {@link ReplSetTest.startSet}
*/
startSetIfSupportsReadMajority = function(replSetTest, options) {
- try {
- replSetTest.startSet(options);
- } catch (e) {
- var conn = MongoRunner.runMongod();
- if (!conn.getDB("admin").serverStatus().storageEngine.supportsCommittedReads) {
- MongoRunner.stopMongod(conn);
- return false;
- }
- throw e;
- }
- return true;
+ replSetTest.startSet(options);
+ return replSetTest.nodes[0]
+ .adminCommand("serverStatus")
+ .storageEngine.supportsCommittedReads;
};
/**