From 7e170b047ed1785a90c0bb9a6fb37284bb372088 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Thu, 9 Apr 2015 10:40:05 -0700 Subject: [PATCH] agent: fix anti-entropy check sync --- command/agent/local.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/command/agent/local.go b/command/agent/local.go index d5c6062f60..eed995a1d3 100644 --- a/command/agent/local.go +++ b/command/agent/local.go @@ -340,10 +340,14 @@ func (l *localState) setSyncState() error { for id, _ := range l.checks { // Sync any check which doesn't exist on the remote side + found := false for _, check := range checks { if check.CheckID == id { - continue + found = true + break } + } + if !found { l.checkStatus[id] = syncStatus{inSync: false} } }