From d6455a5a76d531d47da850df7465bfe14f0e5c5e Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Mon, 26 Oct 2015 13:57:27 +0100 Subject: [PATCH] Use actual parameter passed to the ctor --- .../main/java/org/elasticsearch/index/engine/EngineConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/elasticsearch/index/engine/EngineConfig.java b/core/src/main/java/org/elasticsearch/index/engine/EngineConfig.java index 6cc5ac12ada..c3015c6e560 100644 --- a/core/src/main/java/org/elasticsearch/index/engine/EngineConfig.java +++ b/core/src/main/java/org/elasticsearch/index/engine/EngineConfig.java @@ -57,7 +57,7 @@ public final class EngineConfig { private volatile boolean compoundOnFlush = true; private long gcDeletesInMillis = DEFAULT_GC_DELETES.millis(); private volatile boolean enableGcDeletes = true; - private final TimeValue flushMergesAfter = TimeValue.timeValueMinutes(5); + private final TimeValue flushMergesAfter; private final String codecName; private final ThreadPool threadPool; private final ShardIndexingService indexingService; @@ -145,6 +145,7 @@ public final class EngineConfig { this.queryCache = queryCache; this.queryCachingPolicy = queryCachingPolicy; this.translogConfig = translogConfig; + this.flushMergesAfter = flushMergesAfter; } /** updates {@link #versionMapSize} based on current setting and {@link #indexingBufferSize} */