Skip to content

Commit 1aad0fc

Browse files
authored
Remove unused ILMHistoryStore in IndexLifeycleService (#69503)
this commit removes unused instance variable for the ILMHIstoryStore in IndexLifecycleService. Although it is passed in as an argument to the constructor, it is only used by the IndexLifecycleRunner.
1 parent 1ee4c50 commit 1aad0fc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

x-pack/plugin/ilm/src/main/java/org/elasticsearch/xpack/ilm/IndexLifecycleService.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ public class IndexLifecycleService
6262
private final Clock clock;
6363
private final PolicyStepsRegistry policyRegistry;
6464
private final IndexLifecycleRunner lifecycleRunner;
65-
private final ILMHistoryStore ilmHistoryStore;
6665
private final Settings settings;
6766
private ClusterService clusterService;
6867
private LongSupplier nowSupplier;
@@ -77,7 +76,6 @@ public IndexLifecycleService(Settings settings, Client client, ClusterService cl
7776
this.clock = clock;
7877
this.nowSupplier = nowSupplier;
7978
this.scheduledJob = null;
80-
this.ilmHistoryStore = ilmHistoryStore;
8179
this.policyRegistry = new PolicyStepsRegistry(xContentRegistry, client);
8280
this.lifecycleRunner = new IndexLifecycleRunner(policyRegistry, ilmHistoryStore, clusterService, threadPool, nowSupplier);
8381
this.pollInterval = LifecycleSettings.LIFECYCLE_POLL_INTERVAL_SETTING.get(settings);

0 commit comments

Comments
 (0)