Skip to content

Commit

Permalink
Notify the HostSelectionPolicy of the partioner
Browse files Browse the repository at this point in the history
Fixes apache#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.
  • Loading branch information
jncorpron committed May 8, 2016
1 parent 2e0390b commit 178921d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
1 change: 1 addition & 0 deletions host_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,5 +391,6 @@ func (r *ringDescriber) refreshRing() error {
}

r.session.metadata.setPartitioner(partitioner)
r.session.policy.SetPartitioner(partitioner)
return nil
}

0 comments on commit 178921d

Please sign in to comment.