summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/devnull
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2022-01-28 18:48:05 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-02-02 22:46:04 +0000
commitbd7656e4451b3a0aa19a6616e78fd9a6ae5021e3 (patch)
tree9b9c0ae8f34197fa8ab194dd644a4a738fd17ff8 /src/mongo/db/storage/devnull
parent073c6a2ce8809aeea6e2e35d3f6cdb006ef66765 (diff)
downloadmongo-bd7656e4451b3a0aa19a6616e78fd9a6ae5021e3.tar.gz
SERVER-62608 Add 'forRestore' option to StorageEngineOptions
Diffstat (limited to 'src/mongo/db/storage/devnull')
-rw-r--r--src/mongo/db/storage/devnull/devnull_init.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/storage/devnull/devnull_init.cpp b/src/mongo/db/storage/devnull/devnull_init.cpp
index a1e92f016d7..88cc9cac0b6 100644
--- a/src/mongo/db/storage/devnull/devnull_init.cpp
+++ b/src/mongo/db/storage/devnull/devnull_init.cpp
@@ -48,6 +48,7 @@ public:
StorageEngineOptions options;
options.directoryPerDB = params.directoryperdb;
options.forRepair = params.repair;
+ options.forRestore = params.restore;
options.lockFileCreatedByUncleanShutdown = lockFile && lockFile->createdByUncleanShutdown();
return std::make_unique<StorageEngineImpl>(
opCtx, std::make_unique<DevNullKVEngine>(), options);