0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

extraneous newline in logging

This commit is contained in:
dwight 2010-08-31 05:31:46 -04:00
parent cfb9944f7c
commit 6733946578
2 changed files with 3 additions and 2 deletions

View File

@ -196,8 +196,9 @@ namespace mongo {
CmdShutdown() : Command("shutdown") {}
bool run(const string& dbname, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) {
Client * c = currentClient.get();
if ( c )
if ( c ) {
c->shutdown();
}
log() << "terminating, shutdown command received" << endl;
dbexit( EXIT_CLEAN ); // this never returns
return true;

View File

@ -724,7 +724,7 @@ namespace mongo {
}
catch (...) { }
tryToOutputFatal( "dbexit: really exiting now\n" );
tryToOutputFatal( "dbexit: really exiting now" );
if ( c ) c->shutdown();
::exit(rc);
}