protocol.updateIndexMD(indexMD);
}
protected void handleDeploymentComplete(MasterContext context, List<OperationResult> results, IndexMetaData indexMD,
boolean newIndex) {
ReplicationReport replicationReport = context.getProtocol().getReplicationReport(indexMD);
if (replicationReport.isDeployed()) {
indexMD.setDeployError(null);
updateShardMetaData(results, indexMD);
// we ignore possible shard errors
if (canAndShouldRegulateReplication(context.getProtocol(), replicationReport)) {
context.getProtocol().addMasterOperation(new BalanceIndexOperation(indexMD.getName()));