summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-08-19 13:48:58 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-08-19 13:53:51 -0400
commitfbcc87e0db680d96501615246b4c4d8a8831a1b5 (patch)
treea099308d19ae9a9535eaa9be913df77588646fdd
parentd23fbd801ac643793596406c1400a6641d813f7c (diff)
downloadmongo-fbcc87e0db680d96501615246b4c4d8a8831a1b5.tar.gz
SERVER-19543 Propagate IncompatibleCatalogManager exception from SyncClusterConnection::prepare
-rw-r--r--src/mongo/client/syncclusterconnection.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/client/syncclusterconnection.cpp b/src/mongo/client/syncclusterconnection.cpp
index 3803aae73cb..f9637b31d49 100644
--- a/src/mongo/client/syncclusterconnection.cpp
+++ b/src/mongo/client/syncclusterconnection.cpp
@@ -128,7 +128,10 @@ bool SyncClusterConnection::prepare(string& errmsg) {
if (singleErr.size() == 0)
continue;
- } catch (DBException& e) {
+ } catch (const DBException& e) {
+ if (e.getCode() == ErrorCodes::IncompatibleCatalogManager) {
+ throw;
+ }
singleErr = e.toString();
}
ok = false;