summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/servers.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js
index 1a886bd11d8..8b3d522ea65 100644
--- a/src/mongo/shell/servers.js
+++ b/src/mongo/shell/servers.js
@@ -1197,7 +1197,9 @@ function appendSetParameterArgs(argArray) {
}
// Disable background cache refreshing to avoid races in tests
- argArray.push(...['--setParameter', "disableLogicalSessionCacheRefresh=true"]);
+ if (!argArrayContainsSetParameterValue('disableLogicalSessionCacheRefresh=')) {
+ argArray.push(...['--setParameter', "disableLogicalSessionCacheRefresh=true"]);
+ }
}
// Since options may not be backward compatible, mongos options are not