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

Treat each rack continuum as an array #694

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Conversation

smukil
Copy link
Contributor

@smukil smukil commented Aug 20, 2019

Each rack has a 'struct continuum' pointer in it. This is used to determine
which token belongs to which node (see dyn_vnode.c).

While it has only a single pointer, the code uses it as though it's
an array of struct pointers. This potentially could lead to a lot of
confusion.

This patch addresses this by explicitly changing the member to an array
of structs.

Manually tested to make sure that there is no change to how the keys are
sharded.

@smukil smukil self-assigned this Aug 20, 2019
Each rack has a 'struct continuum' pointer in it. This is used to determine
which token belongs to which node (see dyn_vnode.c).

While it has only a single pointer, the code uses it as though it's
an array of struct pointers. This potentially could lead to a lot of
confusion.

This patch addresses this by explicitly changing the member to an array
of structs.

Manually tested to make sure that there is no change to how the keys are
sharded.
@smukil smukil merged commit 8913c7c into Netflix:dev Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants