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:
parent
ccd76b0bbc
commit
e798acc531
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user