From d7b5f4144735479273977b83843e73bf96cc4466 Mon Sep 17 00:00:00 2001 From: Harmen Date: Tue, 17 Jan 2017 09:02:53 +0100 Subject: [PATCH] reset the watch index when somehow the index goes backwards --- watch/plan.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/watch/plan.go b/watch/plan.go index 6813b59735..8e4fd5e11a 100644 --- a/watch/plan.go +++ b/watch/plan.go @@ -86,6 +86,9 @@ OUTER: if oldIndex != 0 && reflect.DeepEqual(p.lastResult, result) { continue } + if p.lastIndex < oldIndex { + p.lastIndex = 0 + } // Handle the updated result p.lastResult = result