Skip to content

Commit

Permalink
add hosts to policy pool on refreshring
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Sapezhko committed Mar 29, 2017
1 parent ec709fa commit 5a0594c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions host_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ func (r *ringDescriber) refreshRing() error {
if r.session.cfg.HostFilter == nil || r.session.cfg.HostFilter.Accept(h) {
if host, ok := r.session.ring.addHostIfMissing(h); !ok {
r.session.pool.addHost(h)
r.session.policy.AddHost(h)
} else {
host.update(h)
}
Expand Down

0 comments on commit 5a0594c

Please sign in to comment.