Use Versions.MATCH_ANY rather than NOT_SET now that NOT_SET is gone.

Original commit: elastic/x-pack-elasticsearch@14694aea60
This commit is contained in:
Adrien Grand 2016-05-10 08:23:32 +02:00
parent 828b1902c5
commit 7a6025784d
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class Watch implements TriggerEngine.Job, ToXContent {
private final transient AtomicLong nonceCounter = new AtomicLong(); 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, public Watch(String id, Trigger trigger, ExecutableInput input, ExecutableCondition condition, @Nullable ExecutableTransform transform,
@Nullable TimeValue throttlePeriod, ExecutableActions actions, @Nullable Map<String, Object> metadata, @Nullable TimeValue throttlePeriod, ExecutableActions actions, @Nullable Map<String, Object> metadata,