Skip to content

Commit

Permalink
fix(follower): deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
JackZxj committed Aug 11, 2023
1 parent 429fcf5 commit 21859bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controllers/follower/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ func (c *Controller) getLeaderObj(
}

c.gkToFTCLock.RLock()
defer c.gkToFTCLock.RUnlock()
ftcName, exists := c.gkToFTCName[leaderGK]
if !exists {
return nil, fmt.Errorf("unknown leader gk %v", leaderGK)
Expand Down

0 comments on commit 21859bb

Please sign in to comment.