Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dont mark a host which has been removed from the policy/pools, this fixes a race where the pool can remove the policies host, then a query which is using the host will try to mark the host, which does not exist in the underlying hostpool, causing a log.Fatalf/panic. Fix this by checking the policy still has the host we want to mark, and do so whilst holding the mutex read lock so that the hostpool will not change.
- Loading branch information