Skip to content

Conversation

@martincox
Copy link
Contributor

Explicitly filter out non-primary exchanges from exchange_queue as opposed to flipping indexes and allowing it to fail. Prevents logging of not_responsible messages when these errorneous exchanges are attempted.

Relates to basho/riak#1011

opposed to flipping indexes and allowing it to fail. Prevents logging of
not_responsible messages when these errorneous exchanges are attempted.
true ->
{B, A, IndexN}
end || {A, B, IndexN} <- Exchanges],
L = [Exchange || {A, B, _IndexN} = Exchange <- Exchanges, A < B],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a hard time to see that in all cases in which prune_exchages is used, this will give the desired result. The original returns all tripples {A, B, I} and ensures that A =< B for all of them. Your solution just removes all {A, B, I} if A >= B.
Apparently you want this, because that's what the commit comment states. But how is function used by the rest of riak?

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.

3 participants