mirror of https://github.com/status-im/consul.git
agent: fix anti-entropy check sync
This commit is contained in:
parent
f417279761
commit
7e170b047e
|
@ -340,10 +340,14 @@ func (l *localState) setSyncState() error {
|
||||||
|
|
||||||
for id, _ := range l.checks {
|
for id, _ := range l.checks {
|
||||||
// Sync any check which doesn't exist on the remote side
|
// Sync any check which doesn't exist on the remote side
|
||||||
|
found := false
|
||||||
for _, check := range checks {
|
for _, check := range checks {
|
||||||
if check.CheckID == id {
|
if check.CheckID == id {
|
||||||
continue
|
found = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if !found {
|
||||||
l.checkStatus[id] = syncStatus{inSync: false}
|
l.checkStatus[id] = syncStatus{inSync: false}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue