From 4a64134718c89bea044b9553bb31bc9bf8715c08 Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Mon, 2 Nov 2020 08:16:29 -0500 Subject: [PATCH] [DOCS] Fix typo in IndexService.java (#64034) (#64447) Co-authored-by: mushaoqiong --- server/src/main/java/org/elasticsearch/index/IndexService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/index/IndexService.java b/server/src/main/java/org/elasticsearch/index/IndexService.java index 65889078cb3..ebe9449f3a3 100644 --- a/server/src/main/java/org/elasticsearch/index/IndexService.java +++ b/server/src/main/java/org/elasticsearch/index/IndexService.java @@ -527,7 +527,7 @@ public class IndexService extends AbstractIndexComponent implements IndicesClust // and close the shard so no operations are allowed to it if (indexShard != null) { try { - // only flush we are we closed (closed index or shutdown) and if we are not deleted + // only flush if we are closed (closed index or shutdown) and if we are not deleted final boolean flushEngine = deleted.get() == false && closed.get(); indexShard.close(reason, flushEngine); } catch (Exception e) {