From 5553c383bca1f8b5437aa0eb34e291824e9057fb Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Mon, 31 Mar 2014 17:35:48 +0200 Subject: [PATCH] InternalEngine - only set dirty=false after a refresh happened --- .../org/elasticsearch/index/engine/internal/InternalEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/index/engine/internal/InternalEngine.java b/src/main/java/org/elasticsearch/index/engine/internal/InternalEngine.java index 7a4b85a723a..c7b14038f45 100644 --- a/src/main/java/org/elasticsearch/index/engine/internal/InternalEngine.java +++ b/src/main/java/org/elasticsearch/index/engine/internal/InternalEngine.java @@ -706,9 +706,9 @@ public class InternalEngine extends AbstractIndexShardComponent implements Engin // but, we want to make sure not to loose ant refresh calls, if one is taking time synchronized (refreshMutex) { if (dirty || refresh.force()) { - dirty = false; boolean refreshed = searcherManager.maybeRefresh(); assert refreshed : "failed to refresh even though refreshMutex was acquired"; + dirty = false; } } } catch (AlreadyClosedException e) {