Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct route using from sending the rewritten key #282

Closed
wants to merge 1 commit into from

Conversation

cbowman0
Copy link
Contributor

Only use the rewritten key for determining where to route. It shouldn't send the rewritten key.

With `route using` it shouldn't send the rewritten key
@cbowman0
Copy link
Contributor Author

@grobian Can this be merged?

@grobian
Copy link
Owner

grobian commented Jul 19, 2017

In principle yes, but I'm still trying to find time to understand the issue and check why it doesn't this already. Looking at it with a fresher mind, it seems because ch_get_nodes implicitly adds the metric to the returned node list, which is wrong.

grobian added a commit that referenced this pull request Jul 19, 2017
This is an alternative take to the original PR.  Instead of having
ch_get_nodes copy the metric into the destinations struct
(undocumented), perform the copy in router_route_intern, like for all
other cases.  This is more transparent, and ensures that the correct
metric is added to the send queue.
@grobian
Copy link
Owner

grobian commented Jul 19, 2017

instead of adding an extra param to ch_get_nodes, I changed it not to copy metric

@grobian grobian closed this Jul 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants