From 877f2ffcd7785e417c41d0df4b5bd4e3e6d3e350 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Wed, 11 Jul 2012 00:02:18 +0200 Subject: [PATCH] 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 --- .../java/org/elasticsearch/gateway/local/LocalGateway.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main/java/org/elasticsearch/gateway/local/LocalGateway.java b/src/main/java/org/elasticsearch/gateway/local/LocalGateway.java index a23da985172..b89cb0ee072 100644 --- a/src/main/java/org/elasticsearch/gateway/local/LocalGateway.java +++ b/src/main/java/org/elasticsearch/gateway/local/LocalGateway.java @@ -200,10 +200,6 @@ public class LocalGateway extends AbstractLifecycleComponent 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);