Skip to content

Conversation

kostasrim
Copy link
Contributor

@kostasrim kostasrim commented Sep 28, 2025

Following #5774, this PR removes locking the replica_of_mu_ from info command and uses the thread locals && replica of v2 algorithm.

No more locking and blocking for INFO command during replicaof or takeover 🥳 🎉 🌮

@kostasrim kostasrim self-assigned this Sep 28, 2025
@kostasrim kostasrim force-pushed the kpr2 branch 2 times, most recently from 620f35c to 7e36655 Compare September 28, 2025 09:37
}
}

void ServerFamily::RoleV2(CmdArgList args, const CommandContext& cmd_cntx) {
Copy link
Contributor Author

@kostasrim kostasrim Sep 28, 2025

Choose a reason for hiding this comment

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

Once the regression tests run for some time we will slowly remove Role() and ReplicaOf etc (all the variants of the previous versions)

@kostasrim kostasrim force-pushed the kpr2 branch 2 times, most recently from 7cee991 to 59b3350 Compare September 29, 2025 09:23
Signed-off-by: kostas <kostas@dragonflydb.io>
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.

1 participant