Permalink
Browse files

SERVER-6178 catch dbexceptions not socket exceptions during startup c…

…onsistency check

blah
  • Loading branch information...
1 parent 028db4b commit 29253bec3ba365668d503ca015c4e9a7f4cc3f0d Greg Studer committed Jun 28, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/mongo/s/config.cpp
@@ -790,7 +790,11 @@ namespace mongo {
}
conn->done();
}
- catch ( SocketException& e ) {
+ catch ( const DBException& e ) {
+
+ // We need to catch DBExceptions b/c sometimes we throw them
+ // instead of socket exceptions when findN fails
+
warning() << " couldn't check on config server:" << _config[i] << " ok for now : " << e.toString() << endl;
}
res.push_back(x);

0 comments on commit 29253be

Please sign in to comment.