瀏覽代碼

Notify the HostSelectionPolicy of the partioner

Fixes #724; adds back the call to SetPartitioner on the session's
HostSelectionPolicy. This is mostly needed so that the token
aware policy initializes and updates its token ring representation.
Justin Corpron 10 年之前
父節點
當前提交
178921d6b6
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      AUTHORS
  2. 1 0
      host_source.go

+ 1 - 1
AUTHORS

@@ -43,7 +43,7 @@ James Maloney <jamessagan@gmail.com>
 Ashwin Purohit <purohit@gmail.com>
 Dan Kinder <dkinder.is.me@gmail.com>
 Oliver Beattie <oliver@obeattie.com>
-Justin Corpron <justin@retailnext.com>
+Justin Corpron <jncorpron@gmail.com>
 Miles Delahunty <miles.delahunty@gmail.com>
 Zach Badgett <zach.badgett@gmail.com>
 Maciek Sakrejda <maciek@heroku.com>

+ 1 - 0
host_source.go

@@ -391,5 +391,6 @@ func (r *ringDescriber) refreshRing() error {
 	}
 
 	r.session.metadata.setPartitioner(partitioner)
+	r.session.policy.SetPartitioner(partitioner)
 	return nil
 }