mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-19543 Propagate IncompatibleCatalogManager when doing config writes
This commit is contained in:
parent
e798acc531
commit
1e17edc60b
@ -356,6 +356,8 @@ void ConfigCoordinator::executeBatch(const BatchedCommandRequest& clientRequest,
|
||||
log() << "Config server check for host " << host
|
||||
<< " returned error: " << response;
|
||||
}
|
||||
} else if (status == ErrorCodes::IncompatibleCatalogManager) {
|
||||
uassertStatusOK(status);
|
||||
} else {
|
||||
error = true;
|
||||
log() << "Config server check for host " << host
|
||||
@ -414,6 +416,10 @@ void ConfigCoordinator::executeBatch(const BatchedCommandRequest& clientRequest,
|
||||
_dispatcher->recvAny(&configResponse.configHost, &configResponse.response);
|
||||
|
||||
if (!dispatchStatus.isOK()) {
|
||||
if (dispatchStatus == ErrorCodes::IncompatibleCatalogManager) {
|
||||
uassertStatusOK(dispatchStatus);
|
||||
}
|
||||
|
||||
buildErrorFrom(dispatchStatus, &configResponse.response);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user