From d650705a03b9ee8b1140ea8b17cb618c974d3119 Mon Sep 17 00:00:00 2001 From: kimchy Date: Sun, 9 Jan 2011 22:06:51 +0200 Subject: [PATCH] refresh param to bulk not working, closes #614. --- .../index/engine/robin/RobinEngine.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/engine/robin/RobinEngine.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/engine/robin/RobinEngine.java index 26c991a7aa7..ac3d683821b 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/engine/robin/RobinEngine.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/engine/robin/RobinEngine.java @@ -255,15 +255,15 @@ public class RobinEngine extends AbstractIndexShardComponent implements Engine, break; } } - if (bulk.refresh()) { - try { - refresh(new Refresh(false)); - } catch (Exception e) { - //ignore - } - } } dirty = true; + if (bulk.refresh()) { + try { + refresh(new Refresh(false)); + } catch (Exception e) { + //ignore + } + } } finally { rwl.readLock().unlock(); }