0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

SERVER-705 exit cleanly from db.cpp instead of instance.cpp

This commit is contained in:
Aaron 2010-03-08 13:05:40 -08:00
parent cfe99b6363
commit df00eaacf5
3 changed files with 5 additions and 5 deletions

View File

@ -67,6 +67,8 @@ namespace mongo {
void pairWith(const char *remoteEnd, const char *arb);
void setRecCacheSize(unsigned MB);
void exitCleanly( ExitCode code );
const char *ourgetns() {
Client *c = currentClient.get();
if ( ! c )
@ -242,6 +244,9 @@ namespace mongo {
problem() << "SocketException in connThread, closing client connection" << endl;
dbMsgPort.shutdown();
}
catch ( const ClockSkewException &e ) {
exitCleanly( EXIT_CLOCK_SKEW );
}
catch ( std::exception &e ) {
problem() << "Uncaught std::exception: " << e.what() << ", terminating" << endl;
dbexit( EXIT_UNCAUGHT );

View File

@ -205,8 +205,6 @@ namespace mongo {
extern TicketHolder connTicketHolder;
void exitCleanly( ExitCode code );
} // namespace mongo
//#include "dbinfo.h"

View File

@ -339,9 +339,6 @@ namespace mongo {
ss << " exception " + e.toString();
log = true;
}
catch ( ClockSkewException &e ) {
exitCleanly( EXIT_CLOCK_SKEW );
}
}
}
currentOp.ensureStarted();