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

Refactor slotmap update functions #107

Merged
merged 7 commits into from
Oct 4, 2024

Conversation

bjosv
Copy link
Collaborator

@bjosv bjosv commented Oct 3, 2024

  • Merge handleClusterSlotsReply and handleClusterNodesReply into clusterUpdateRouteHandleReply.
    • Validate the reply in parse_cluster_slots and parse_cluster_nodes
    • Remove redundant argument flags in parse_cluster_slots and parse_cluster_nodes
  • Use error strings from the standalone context in both the send function (clusterUpdateRouteSendCommand) and the response function (handleClusterSlotsReply); making sure that specific error strings are used (like OOM).
  • Update OOM test which now get correct error string.

Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Merge handleClusterSlotsReply and handleClusterNodesReply into
clusterUpdateRouteHandleReply.

Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
@bjosv bjosv force-pushed the refactor-slotmap-update-internals branch from 9dcda0b to fe4a044 Compare October 3, 2024 10:36
@bjosv bjosv requested a review from zuiderkwast October 3, 2024 10:45
Copy link
Collaborator

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

LGTM

@bjosv bjosv merged commit 1d9e49c into valkey-io:main Oct 4, 2024
34 checks passed
@bjosv bjosv deleted the refactor-slotmap-update-internals branch October 4, 2024 09:41
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