remove forced refresh on settings update

This commit is contained in:
Michael McCandless 2015-09-14 05:32:59 -04:00 committed by mikemccand
parent 274044e7dd
commit 8dc08f70b4
2 changed files with 4 additions and 2 deletions

View File

@ -1241,6 +1241,10 @@ public class InternalEngine extends Engine {
public void onSettingsChanged() {
mergeScheduler.refreshConfig();
updateIndexWriterSettings();
// config().getVersionMapSize() may have changed:
checkVersionMapRefresh();
// config().isEnableGcDeletes() or config.getGcDeletesInMillis() may have changed:
maybePruneDeletedTombstones();
}
public MergeStats getMergeStats() {

View File

@ -1137,8 +1137,6 @@ public class IndexShard extends AbstractIndexShardComponent {
indexingService.onRefreshSettings(settings);
if (change) {
engine().onSettingsChanged();
// TODO: why force a refresh here...?
refresh("apply settings");
}
}
}