check also on the node settings

This commit is contained in:
Shay Banon 2012-05-04 17:11:10 +03:00
parent 76b32a646c
commit e1732d0a59
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class InternalIndicesWarmer extends AbstractComponent implements IndicesW
if (indexMetaData == null) {
return;
}
if (!indexMetaData.settings().getAsBoolean("index.warm.enabled", true)) {
if (!indexMetaData.settings().getAsBoolean("index.warm.enabled", settings.getAsBoolean("index.warm.enabled", true))) {
return;
}
IndexService indexService = indicesService.indexService(shardId.index().name());