summaryrefslogtreecommitdiff
path: root/db/db.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/db.cpp')
-rw-r--r--db/db.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/db.cpp b/db/db.cpp
index 489287d2773..ab2e6cb5020 100644
--- a/db/db.cpp
+++ b/db/db.cpp
@@ -65,6 +65,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();
return c ? c->ns() : "";
@@ -224,6 +226,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 );