Skip to content

Commit

Permalink
elastic#5882 keep the CMS settings configurable; just change the defa…
Browse files Browse the repository at this point in the history
…ults to Lucene's
  • Loading branch information
mikemccand committed Apr 22, 2014
1 parent 561612c commit 6ce7153
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -53,8 +53,8 @@ public class ConcurrentMergeSchedulerProvider extends MergeSchedulerProvider {
public ConcurrentMergeSchedulerProvider(ShardId shardId, @IndexSettings Settings indexSettings, ThreadPool threadPool) {
super(shardId, indexSettings, threadPool);

this.maxThreadCount = ConcurrentMergeScheduler.DEFAULT_MAX_THREAD_COUNT;
this.maxMergeCount = ConcurrentMergeScheduler.DEFAULT_MAX_MERGE_COUNT;
this.maxThreadCount = componentSettings.getAsInt("max_thread_count", ConcurrentMergeScheduler.DEFAULT_MAX_THREAD_COUNT);
this.maxMergeCount = componentSettings.getAsInt("max_merge_count", ConcurrentMergeScheduler.DEFAULT_MAX_MERGE_COUNT);
logger.debug("using [concurrent] merge scheduler with max_thread_count[{}]", maxThreadCount);
}

Expand Down

0 comments on commit 6ce7153

Please sign in to comment.