mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(master): fixed an issue where disks successfully decommissioned were re-marked .
close: #1000412387
Signed-off-by: shuqiang-zheng <zhengshuqiang@oppo.com>
(cherry picked from commit d4ecea0527)
This commit is contained in:
parent
63c1e7d8d7
commit
61ff222b32
@ -5237,7 +5237,7 @@ func (c *Cluster) canAutoDecommissionDisk(addr string, diskPath string) (yes boo
|
||||
if value, ok := c.DecommissionDisks.Load(key); ok {
|
||||
d := value.(*DecommissionDisk)
|
||||
status = d.GetDecommissionStatus()
|
||||
yes = status != markDecommission && status != DecommissionRunning && status != DecommissionPause
|
||||
yes = status != markDecommission && status != DecommissionRunning && status != DecommissionPause && status != DecommissionSuccess
|
||||
return
|
||||
}
|
||||
yes = true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user