Counting shards was wrong if one of the indices was in the RED status

Closes #4528
This commit is contained in:
Boaz Leskes 2013-12-20 13:12:52 +01:00
parent 998b7b3b86
commit bbffeb1b39
1 changed files with 0 additions and 1 deletions

View File

@ -97,7 +97,6 @@ public class ClusterHealthResponse extends ActionResponse implements Iterable<Cl
unassignedShards += indexHealth.unassignedShards;
if (indexHealth.getStatus() == ClusterHealthStatus.RED) {
status = ClusterHealthStatus.RED;
break;
} else if (indexHealth.getStatus() == ClusterHealthStatus.YELLOW && status != ClusterHealthStatus.RED) {
status = ClusterHealthStatus.YELLOW;
}