Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Dec 5, 2024
1 parent ad5fe05 commit 39ae987
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -2442,13 +2442,14 @@ func (c *RaftCluster) GetProgressByID(storeID string) (action string, process, l
}
progress := c.progressManager.GetProgresses(filter)
if len(progress) != 0 {
process, ls, cs, err = c.progressManager.Status(progress[0])
pg := progress[0]
process, ls, cs, err = c.progressManager.Status(pg)
if err != nil {
return
}
if strings.HasPrefix(progress[0], removingAction) {
if strings.HasPrefix(pg, removingAction) {
action = removingAction
} else if strings.HasPrefix(progress[0], preparingAction) {
} else if strings.HasPrefix(pg, preparingAction) {
action = preparingAction
}
return
Expand Down

0 comments on commit 39ae987

Please sign in to comment.