From 7a6025784ddf754e3ee0c4cc623cb349f756d674 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Tue, 10 May 2016 08:23:32 +0200 Subject: [PATCH] Use Versions.MATCH_ANY rather than NOT_SET now that NOT_SET is gone. Original commit: elastic/x-pack-elasticsearch@14694aea60ebdf545404abcf391cbc93085f6b07 --- .../main/java/org/elasticsearch/xpack/watcher/watch/Watch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/watch/Watch.java b/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/watch/Watch.java index 7aaf46430e1..f7a230d1a23 100644 --- a/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/watch/Watch.java +++ b/elasticsearch/x-pack/watcher/src/main/java/org/elasticsearch/xpack/watcher/watch/Watch.java @@ -73,7 +73,7 @@ public class Watch implements TriggerEngine.Job, ToXContent { private final transient AtomicLong nonceCounter = new AtomicLong(); - private transient long version = Versions.NOT_SET; + private transient long version = Versions.MATCH_ANY; public Watch(String id, Trigger trigger, ExecutableInput input, ExecutableCondition condition, @Nullable ExecutableTransform transform, @Nullable TimeValue throttlePeriod, ExecutableActions actions, @Nullable Map metadata,