summaryrefslogtreecommitdiff
path: root/src/mongo/shell/servers.js
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2020-01-28 15:27:41 +0000
committerevergreen <evergreen@mongodb.com>2020-01-28 15:27:41 +0000
commit15ad788ca299752d5b3fd9f0b526a71036a03286 (patch)
tree84c8bc21f1ec26888800fcd0a71622ed847c13de /src/mongo/shell/servers.js
parent8f9e17ee4bf9ebebe6d94e737bd67ed2468c4ae6 (diff)
downloadmongo-15ad788ca299752d5b3fd9f0b526a71036a03286.tar.gz
SERVER-45751 Multiversion tests should apply enableMajorityReadConcern to last-stable nodes
Diffstat (limited to 'src/mongo/shell/servers.js')
-rw-r--r--src/mongo/shell/servers.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js
index d8b9778c46e..a28e851c29f 100644
--- a/src/mongo/shell/servers.js
+++ b/src/mongo/shell/servers.js
@@ -1163,9 +1163,7 @@ function appendSetParameterArgs(argArray) {
}
}
- // Since options may not be backward compatible, mongod options are not
- // set on older versions, e.g., mongod-3.0.
- if (programName.endsWith('mongod')) {
+ if (!programMajorMinorVersion || programMajorMinorVersion >= 306) {
if (jsTest.options().storageEngine === "wiredTiger" ||
!jsTest.options().storageEngine) {
if (jsTest.options().enableMajorityReadConcern !== undefined &&
@@ -1173,6 +1171,14 @@ function appendSetParameterArgs(argArray) {
argArray.push(...['--enableMajorityReadConcern',
jsTest.options().enableMajorityReadConcern.toString()]);
}
+ }
+ }
+
+ // Since options may not be backward compatible, mongod options are not
+ // set on older versions, e.g., mongod-3.0.
+ if (programName.endsWith('mongod')) {
+ if (jsTest.options().storageEngine === "wiredTiger" ||
+ !jsTest.options().storageEngine) {
if (jsTest.options().storageEngineCacheSizeGB &&
!argArrayContains('--wiredTigerCacheSizeGB')) {
argArray.push(...['--wiredTigerCacheSizeGB',