diff options
author | Luis Osta <luis.osta@mongodb.com> | 2021-10-07 19:14:32 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-07 19:28:29 +0000 |
commit | b59d2547c281c42e61b52d44291d500f4dad21e4 (patch) | |
tree | e4c2fa42215737104fb9302b77d9a9f11a4e983d /src/mongo/shell/servers.js | |
parent | 642531a44a0d6675f028f6affc4c3fcac36c67c2 (diff) | |
download | mongo-b59d2547c281c42e61b52d44291d500f4dad21e4.tar.gz |
SERVER-54064 Clear out the logical session cache on refresh in arbiters
Diffstat (limited to 'src/mongo/shell/servers.js')
-rw-r--r-- | src/mongo/shell/servers.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js index 51c016b146d..7c873be9f0c 100644 --- a/src/mongo/shell/servers.js +++ b/src/mongo/shell/servers.js @@ -1106,7 +1106,9 @@ var MongoRunner, _startMongod, startMongoProgram, runMongoProgram, startMongoPro } // 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 |