diff options
author | Yu Jin Kang Park <yujin.kang@mongodb.com> | 2023-01-23 14:17:04 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-23 15:56:43 +0000 |
commit | 1041a35afa2d66094e6b51894871f990b0f9f0f3 (patch) | |
tree | 45f91b7a79c01940fa96a568eb9829d9695e19f9 /src/mongo/db | |
parent | 23102a1982d8eaccb4bd7aa83a314699892fdf5d (diff) | |
download | mongo-1041a35afa2d66094e6b51894871f990b0f9f0f3.tar.gz |
SERVER-73183 Skip storageEngine option sanitization for inMemory mode
Diffstat (limited to 'src/mongo/db')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp index b65e7fc3270..c58ee92a70b 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp @@ -2711,7 +2711,8 @@ size_t WiredTigerKVEngine::getCacheSizeMB() const { StatusWith<BSONObj> WiredTigerKVEngine::getSanitizedStorageOptionsForSecondaryReplication( const BSONObj& options) const { - if (options.isEmpty()) { + // Skip inMemory storage engine, encryption at rest only applies to storage backed engine. + if (_ephemeral || options.isEmpty()) { return options; } |