0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

SERVER-19543 Propagate IncompatibleCatalogManager error from MultiHostQuery

This commit is contained in:
Randolph Tan 2015-08-17 17:41:37 -04:00
parent ccd76b0bbc
commit e798acc531
2 changed files with 7 additions and 0 deletions

View File

@ -143,6 +143,7 @@ error_code("InvalidSSLConfiguration", 140)
error_code("SSLHandshakeFailed", 141)
error_code("JSUncatchableError", 142)
error_code("CursorInUse", 143)
error_code("IncompatibleCatalogManager", 144)
# Non-sequential error codes (for compatibility only)
error_code("RecvStaleConfig", 9996)

View File

@ -249,6 +249,12 @@ bool MultiHostQueryOp::releaseResult_inlock(StatusWith<DBClientCursor*>* nextRes
++numReleased;
} else {
++numErrors;
// End immediately and don't try to combine errors with WrongShardingCatalog.
if (result == ErrorCodes::IncompatibleCatalogManager) {
*nextResult = result;
return true;
}
}
}