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

Partitioned Adapter supports two-item tuples as keys #214

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

twinn
Copy link
Contributor

@twinn twinn commented Sep 29, 2023

Thanks for Nebulex!

We've run into a problem using get_all when asking for two-item tuple keys (ie {"foo", 1}). The partitioned adapter would only consider the first element of the tuple to be the key, and therefore may ask for the data on the wrong node. This seems to have been done to support put_(new_)all which puts the key in the first element and values in the second.

I've passed along the action to the group_keys_by_node function so we're able to know which structure to expect in the enum.

There was a problem that `get_all` when asking for a two element tuple key (ie
`{"foo", 1}) would only consider the first element of the tuple to be the key,
and therefore may ask for the data on the wrong node. This seems to have been
done to support put_(new_)all which puts the key in the first element and values in
the second.

I've passed along the action to the `group_keys_by_node` function so we're able
to know which structure to expect.
@coveralls
Copy link

Coverage Status

coverage: 100.0%. remained the same when pulling 5c77916 on twinn:master into 64fde41 on cabol:master.

@cabol cabol merged commit afb5eb3 into cabol:master Oct 13, 2023
5 checks passed
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