소스 검색

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()