diff options
Diffstat (limited to 'src/mongo/db/mongod_main.cpp')
-rw-r--r-- | src/mongo/db/mongod_main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/mongod_main.cpp b/src/mongo/db/mongod_main.cpp index 0c24730d523..4a13a44fde8 100644 --- a/src/mongo/db/mongod_main.cpp +++ b/src/mongo/db/mongod_main.cpp @@ -445,7 +445,8 @@ ExitCode _initAndListen(ServiceContext* serviceContext, int listenPort) { auto startupOpCtx = serviceContext->makeOperationContext(&cc()); try { - startup_recovery::repairAndRecoverDatabases(startupOpCtx.get()); + startup_recovery::repairAndRecoverDatabases(startupOpCtx.get(), + lastStorageEngineShutdownState); } catch (const ExceptionFor<ErrorCodes::MustDowngrade>& error) { LOGV2_FATAL_OPTIONS( 20573, |