فهرست منبع

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