Skip to content

Commit acbf4e4

Browse files
committed
use metadata setting
1 parent 95b9bad commit acbf4e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/DatabaseNodeService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public Boolean isValid(ProjectId projectId, String databaseFile) {
211211
return true;
212212
}
213213

214-
boolean valid = metadata.isNewEnough(projectMetadata.settings());
214+
boolean valid = metadata.isNewEnough(clusterService.state().metadata().settings());
215215
if (valid && metadata.isCloseToExpiration()) {
216216
HeaderWarning.addWarning(
217217
"database [{}] was not updated for over 25 days, geoip processor will stop working if there is no update for 30 days",

0 commit comments

Comments
 (0)