Merge branch 'master' of github.com:elastic/x-plugins

Original commit: elastic/x-pack-elasticsearch@5ab54f94aa
This commit is contained in:
Ryan Ernst 2016-10-01 09:49:01 +02:00
commit a51107769e
1 changed files with 0 additions and 3 deletions

View File

@ -189,9 +189,6 @@ public class WatchStore extends AbstractComponent {
// even if the watch was not found in the watch map, we should still try to delete it
// from the index, just to make sure we don't leave traces of it
DeleteRequest request = new DeleteRequest(INDEX, DOC_TYPE, id);
if (watch != null) {
request.version(watch.version());
}
DeleteResponse response = client.delete(request);
// Another operation may hold the Watch instance, so lets set the version for consistency:
if (watch != null) {