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

Fix SlotMap inconsistency. #22

Merged
merged 1 commit into from
Aug 16, 2023
Merged

Fix SlotMap inconsistency. #22

merged 1 commit into from
Aug 16, 2023

Conversation

nihohit
Copy link

@nihohit nihohit commented Aug 13, 2023

fill_slots carried an implicit assumption that the SlotMap was cleared before the call, otherwise the resulting map contained some old and some new slots. This change ensures that slot replacement removes all old slots.

Copy link

@barshaul barshaul left a comment

Choose a reason for hiding this comment

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

Some comments

redis/src/cluster_topology.rs Outdated Show resolved Hide resolved
redis/src/cluster_topology.rs Outdated Show resolved Hide resolved
`fill_slots` carried an implicit assumption that the `SlotMap` was cleared
before the call, otherwise the resulting map contained some old and
some new slots. This change ensures that slot replacement removes all
old slots.
@nihohit nihohit merged commit ee38607 into main Aug 16, 2023
9 checks passed
@nihohit nihohit deleted the fix-slot-map branch August 16, 2023 19:23
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