Bläddra i källkod

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 år sedan
förälder
incheckning
178921d6b6
2 ändrade filer med 2 tillägg och 1 borttagningar
  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>
 Ashwin Purohit <purohit@gmail.com>
 Dan Kinder <dkinder.is.me@gmail.com>
 Dan Kinder <dkinder.is.me@gmail.com>
 Oliver Beattie <oliver@obeattie.com>
 Oliver Beattie <oliver@obeattie.com>
-Justin Corpron <justin@retailnext.com>
+Justin Corpron <jncorpron@gmail.com>
 Miles Delahunty <miles.delahunty@gmail.com>
 Miles Delahunty <miles.delahunty@gmail.com>
 Zach Badgett <zach.badgett@gmail.com>
 Zach Badgett <zach.badgett@gmail.com>
 Maciek Sakrejda <maciek@heroku.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.metadata.setPartitioner(partitioner)
+	r.session.policy.SetPartitioner(partitioner)
 	return nil
 	return nil
 }
 }