don't clean up indices if there is a block disabling persistence

This commit is contained in:
kimchy 2011-03-22 18:41:29 +02:00
parent 8c9000c54c
commit b2d7cd78b7
1 changed files with 4 additions and 0 deletions

View File

@ -57,6 +57,10 @@ public class IndicesStore extends AbstractComponent implements ClusterStateListe
return;
}
if (event.state().blocks().disableStatePersistence()) {
return;
}
// when all shards are started within a shard replication group, delete an unallocated shard on this node
RoutingTable routingTable = event.state().routingTable();
for (IndexRoutingTable indexRoutingTable : routingTable) {