Skip to content

Commit

Permalink
cluster: fix race when getting coordinator (tikv#8037)
Browse files Browse the repository at this point in the history
close tikv#8036

Signed-off-by: Cabinfever_B <[email protected]>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
CabinfeverB and ti-chi-bot[bot] authored Apr 9, 2024
1 parent 726b81f commit a1e957d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ func (c *RaftCluster) updateProgress(storeID uint64, storeAddress, action string
switch action {
case removingAction:
progressName = encodeRemovingProgressKey(storeID)
opts = []progress.Option{progress.WindowDurationOption(c.coordinator.GetPatrolRegionsDuration())}
opts = []progress.Option{progress.WindowDurationOption(c.GetCoordinator().GetPatrolRegionsDuration())}
case preparingAction:
progressName = encodePreparingProgressKey(storeID)
}
Expand Down

0 comments on commit a1e957d

Please sign in to comment.