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:
parent
cfb9944f7c
commit
6733946578
@ -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;
|
||||
|
@ -724,7 +724,7 @@ namespace mongo {
|
||||
}
|
||||
catch (...) { }
|
||||
|
||||
tryToOutputFatal( "dbexit: really exiting now\n" );
|
||||
tryToOutputFatal( "dbexit: really exiting now" );
|
||||
if ( c ) c->shutdown();
|
||||
::exit(rc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user