diff --git a/client/client.go b/client/client.go index b5bd9cdcb..3cac9ddcd 100644 --- a/client/client.go +++ b/client/client.go @@ -1938,9 +1938,6 @@ func (c *Client) allocSync() { // allocUpdates holds the results of receiving updated allocations from the // servers. type allocUpdates struct { - // index is index of server store snapshot used for fetching alloc status - index uint64 - // pulled is the set of allocations that were downloaded from the servers. pulled map[string]*structs.Allocation @@ -2123,7 +2120,6 @@ OUTER: filtered: filtered, pulled: pulledAllocs, migrateTokens: resp.MigrateTokens, - index: resp.Index, } select { diff --git a/client/util.go b/client/util.go index b8690f647..af3bd7540 100644 --- a/client/util.go +++ b/client/util.go @@ -33,7 +33,7 @@ func diffAllocs(existing map[string]uint64, allocs *allocUpdates) *diffResult { _, filtered := allocs.filtered[existID] // If not updated or filtered, removed - if !pulled && !filtered && allocs.index > existIndex { + if !pulled && !filtered { result.removed = append(result.removed, existID) continue } diff --git a/vendor/google.golang.org/appengine/internal/regen.sh b/vendor/google.golang.org/appengine/internal/regen.sh old mode 100644 new mode 100755