Skip to content

Commit ced4f18

Browse files
committed
refresh param to bulk not working, closes elastic#614.
1 parent 7bfe8b5 commit ced4f18

File tree

1 file changed

+7
-7
lines changed
  • modules/elasticsearch/src/main/java/org/elasticsearch/index/engine/robin

1 file changed

+7
-7
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/index/engine/robin/RobinEngine.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ public class RobinEngine extends AbstractIndexShardComponent implements Engine,
232232
break;
233233
}
234234
}
235-
if (bulk.refresh()) {
236-
try {
237-
refresh(new Refresh(false));
238-
} catch (Exception e) {
239-
//ignore
240-
}
241-
}
242235
}
243236
dirty = true;
237+
if (bulk.refresh()) {
238+
try {
239+
refresh(new Refresh(false));
240+
} catch (Exception e) {
241+
//ignore
242+
}
243+
}
244244
} finally {
245245
rwl.readLock().unlock();
246246
}

0 commit comments

Comments
 (0)