propagate cluster event to shard and meta states in local gateway even when state persistence is disabled, so they can act on it if needed

This commit is contained in:
Shay Banon 2012-07-11 00:02:18 +02:00
parent 57e966e9d7
commit 877f2ffcd7
1 changed files with 0 additions and 4 deletions

View File

@ -200,10 +200,6 @@ public class LocalGateway extends AbstractLifecycleComponent<Gateway> implements
@Override
public void clusterChanged(final ClusterChangedEvent event) {
// nothing to do until we actually recover from the gateway or any other block indicates we need to disable persistency
if (event.state().blocks().disableStatePersistence()) {
return;
}
// order is important, first metaState, and then shardsState
// so dangling indices will be recorded
metaState.clusterChanged(event);