ソースを参照

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

Chris Bannister 10 年 前
コミット
af634bb091
1 ファイル変更1 行追加0 行削除
  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()