Explorar o código

add the host to the fallback policy as well as the token aware one

Chris Bannister %!s(int64=10) %!d(string=hai) anos
pai
achega
af634bb091
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      policies.go

+ 1 - 0
policies.go

@@ -285,6 +285,7 @@ func (t *tokenAwareHostPolicy) SetPartitioner(partitioner string) {
 
 func (t *tokenAwareHostPolicy) AddHost(host *HostInfo) {
 	t.hosts.add(host)
+	t.fallback.AddHost(host)
 
 	t.mu.Lock()
 	t.resetTokenRing()