Skip to content

Commit

Permalink
Merge pull request #906 from hashicorp/b-client-not-pulling-allocs
Browse files Browse the repository at this point in the history
client: fix bug where pushing allocs is skipped
  • Loading branch information
dadgar committed Mar 11, 2016
2 parents 746809e + cddda67 commit 1d0a726
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 1d0a726

Please sign in to comment.