diff options
author | Matthew Russotto <matthew.russotto@10gen.com> | 2020-03-12 15:50:42 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-12 20:08:48 +0000 |
commit | 497f50a5e25db6171290f6e791ad02dd2b607498 (patch) | |
tree | abbec0d72c3e7a36f62df41e80ce0cd8e9339e08 /src/mongo/shell/servers.js | |
parent | 4e329f262b5c083068700930177d2eb003241273 (diff) | |
download | mongo-497f50a5e25db6171290f6e791ad02dd2b607498.tar.gz |
SERVER-21700 Do not relax constraints during steady state replication.
Diffstat (limited to 'src/mongo/shell/servers.js')
-rw-r--r-- | src/mongo/shell/servers.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js index 22ca5e87df3..1024e3d1316 100644 --- a/src/mongo/shell/servers.js +++ b/src/mongo/shell/servers.js @@ -1169,6 +1169,15 @@ function appendSetParameterArgs(argArray) { } } + // New mongod-specific option in 4.3.x. + if (!programMajorMinorVersion || programMajorMinorVersion >= 430) { + if (!argArrayContainsSetParameterValue( + 'oplogApplicationEnforcesSteadyStateConstraints=')) { + argArray.push(...['--setParameter', + 'oplogApplicationEnforcesSteadyStateConstraints=true']); + } + } + // New mongod-specific options in 4.0.x if (!programMajorMinorVersion || programMajorMinorVersion >= 400) { if (jsTest.options().transactionLifetimeLimitSeconds !== undefined) { |