Skip to content

Commit 4ad367c

Browse files
committed
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 b74d9da commit 4ad367c

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
@@ -63,7 +63,6 @@ public class IndexLifecycleService
6363
private final Clock clock;
6464
private final PolicyStepsRegistry policyRegistry;
6565
private final IndexLifecycleRunner lifecycleRunner;
66-
private final ILMHistoryStore ilmHistoryStore;
6766
private final Settings settings;
6867
private ClusterService clusterService;
6968
private LongSupplier nowSupplier;
@@ -78,7 +77,6 @@ public IndexLifecycleService(Settings settings, Client client, ClusterService cl
7877
this.clock = clock;
7978
this.nowSupplier = nowSupplier;
8079
this.scheduledJob = null;
81-
this.ilmHistoryStore = ilmHistoryStore;
8280
this.policyRegistry = new PolicyStepsRegistry(xContentRegistry, client);
8381
this.lifecycleRunner = new IndexLifecycleRunner(policyRegistry, ilmHistoryStore, clusterService, threadPool, nowSupplier);
8482
this.pollInterval = LifecycleSettings.LIFECYCLE_POLL_INTERVAL_SETTING.get(settings);

0 commit comments

Comments
 (0)