diff options
-rw-r--r-- | src/mongo/db/instance.cpp | 2 | ||||
-rw-r--r-- | src/mongo/s/server.cpp | 1 | ||||
-rw-r--r-- | src/mongo/util/exit.h | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp index 30c69daca76..3abd2c8ebf5 100644 --- a/src/mongo/db/instance.cpp +++ b/src/mongo/db/instance.cpp @@ -1055,7 +1055,7 @@ namespace { audit::logShutdown(currentClient.get()); - log() << "dbexit: " << why; + log() << "dbexit: " << why << " rc: " << rc; #ifdef _WIN32 // Windows Service Controller wants to be told when we are down, diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp index 324d94224e1..bc3d6be2ab5 100644 --- a/src/mongo/s/server.cpp +++ b/src/mongo/s/server.cpp @@ -486,7 +486,6 @@ void mongo::dbexit( ExitCode rc, const char *why ) { #endif log() << "dbexit: " << why << " rc:" << rc - << " " << ( why ? why : "" ) << endl; flushForGcov(); ::_exit(rc); diff --git a/src/mongo/util/exit.h b/src/mongo/util/exit.h index 6671ef3ad62..6eebefe0123 100644 --- a/src/mongo/util/exit.h +++ b/src/mongo/util/exit.h @@ -32,6 +32,7 @@ namespace mongo { + // Note: whyMsg can never be NULL. void dbexit( ExitCode returnCode, const char *whyMsg = "" ); MONGO_CLIENT_API bool inShutdown(); |