summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2021-03-23 15:29:54 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-24 14:34:16 +0000
commit8b64da4e43b7318a7ab8a7580708195b6de91200 (patch)
tree87dc086db325b5b2dcda530d2752d52c4e43cd1a /src/mongo/shell
parent7cfa7de2c1b8cefa90e0b6f4a24f13a0aa3c448a (diff)
downloadmongo-8b64da4e43b7318a7ab8a7580708195b6de91200.tar.gz
SERVER-54064: Periodically clear out the logical session cache on arbiters.
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