mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
client: fix bug where pushing allocs is skipped
This commit is contained in:
@@ -1001,10 +1001,9 @@ func (c *Client) watchAllocations(updates chan *allocUpdates) {
|
||||
}
|
||||
|
||||
// Update the query index.
|
||||
if resp.Index <= req.MinQueryIndex {
|
||||
continue
|
||||
if resp.Index > req.MinQueryIndex {
|
||||
req.MinQueryIndex = resp.Index
|
||||
}
|
||||
req.MinQueryIndex = resp.Index
|
||||
|
||||
// Push the updates.
|
||||
pulled := make(map[string]*structs.Allocation, len(allocsResp.Allocs))
|
||||
|
||||
Reference in New Issue
Block a user