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(server): do not print warning on replica stop/ takeover #2560

Merged
merged 2 commits into from
Feb 9, 2024
Merged

Conversation

adiholden
Copy link
Collaborator

fixes #2481

Signed-off-by: adi_holden <adi@dragonflydb.io>
state_mask_.fetch_and(R_ENABLED);
if (state_mask_.load() & R_ENABLED) { // replication was not stopped.
Copy link
Collaborator

Choose a reason for hiding this comment

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

just use the return value from fetch_and

Signed-off-by: adi_holden <adi@dragonflydb.io>
@romange romange merged commit c2ee348 into main Feb 9, 2024
10 checks passed
@romange romange deleted the fix_2481 branch February 9, 2024 06:10
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.

Remove cancelled replication warning when repltakeover succeeds
3 participants