Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#22376] xCluster: Acquire locks in correct order when handling AutoF…
…lagsConfigChange Summary: `HandleLocalAutoFlagsConfigChange` and `RefreshAutoFlagConfigVersion` take the ClusterConfig write lock before ReplicationInfo write lock. Whereas `AddCDCStreamToUniverseAndInitConsumer` take the locks in the other order causing a deadlock of setup replication. Fixed the lock order in `HandleLocalAutoFlagsConfigChange` and `RefreshAutoFlagConfigVersion`. Jira: DB-11277 Test Plan: Jenkins Reviewers: slingam, jhe, xCluster, asrivastava Reviewed By: asrivastava Subscribers: ybase Differential Revision: https://phorge.dev.yugabyte.com/D35072
- Loading branch information