0
0
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:
Randolph Tan 2015-08-17 18:46:18 -04:00
parent e798acc531
commit 1e17edc60b

View File

@ -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);
}
}