From 50ccb665a0ba4f5f38ef227b27cddf48d28e8203 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Wed, 3 Aug 2011 11:30:01 +0300 Subject: [PATCH] Delete By Query wrongly persisted to translog, closes #1198. --- .../main/java/org/elasticsearch/index/translog/Translog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/Translog.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/Translog.java index 768a1b26dd5..d4428f0823a 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/Translog.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/Translog.java @@ -505,7 +505,7 @@ public interface Translog extends IndexShardComponent { } public DeleteByQuery(Engine.DeleteByQuery deleteByQuery) { - this(deleteByQuery.source(), deleteByQuery.types()); + this(deleteByQuery.source(), deleteByQuery.filteringAliases(), deleteByQuery.types()); } public DeleteByQuery(byte[] source, String[] filteringAliases, String... types) {