diff options
Diffstat (limited to 'src/mongo/util/exit.cpp')
-rw-r--r-- | src/mongo/util/exit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/util/exit.cpp b/src/mongo/util/exit.cpp index 6352fc1dd52..14359a797f9 100644 --- a/src/mongo/util/exit.cpp +++ b/src/mongo/util/exit.cpp @@ -31,6 +31,7 @@ #include "mongo/platform/basic.h" #include "mongo/util/exit.h" +#include "mongo/util/exit_code.h" #include <boost/optional.hpp> #include <functional> @@ -40,6 +41,7 @@ #include "mongo/platform/mutex.h" #include "mongo/stdx/condition_variable.h" #include "mongo/stdx/thread.h" +#include "mongo/util/assert_util.h" #include "mongo/util/quick_exit.h" #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kControl @@ -173,7 +175,7 @@ void shutdownNoTerminate(const ShutdownTaskArgs& shutdownArgs) { { stdx::lock_guard<Latch> lock(shutdownMutex); shutdownTasksInProgress = false; - shutdownExitCode.emplace(EXIT_CLEAN); + shutdownExitCode.emplace(ExitCode::clean); } shutdownTasksComplete.notify_all(); |