Browse Source

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 9 years ago
parent
commit
178921d6b6
2 changed files with 2 additions and 1 deletions
  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
 }
 }