Corrected issue with throttle type setting not respected upon updates

This commit is contained in:
Derek Slife 2014-03-11 14:17:31 -07:00 committed by Adrien Grand
parent 965620c3ff
commit 0236a77c0b
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ public abstract class AbstractIndexStore extends AbstractIndexComponent implemen
class ApplySettings implements IndexSettingsService.Listener {
@Override
public void onRefreshSettings(Settings settings) {
String rateLimitingType = indexSettings.get(INDEX_STORE_THROTTLE_TYPE, AbstractIndexStore.this.rateLimitingType);
String rateLimitingType = settings.get(INDEX_STORE_THROTTLE_TYPE, AbstractIndexStore.this.rateLimitingType);
if (!rateLimitingType.equals(AbstractIndexStore.this.rateLimitingType)) {
logger.info("updating index.store.throttle.type from [{}] to [{}]", AbstractIndexStore.this.rateLimitingType, rateLimitingType);
if (rateLimitingType.equalsIgnoreCase("node")) {