mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -05:00
decom: Fix failed status after a failed decommission (#19300)
When returning the status of a decommissioned pool, a pool with zero time StartedTime will be considered an active pool, which is unexpected. This commit will always ensure that a pool's canceled/failed/completed status is returned.
This commit is contained in:
parent
999bbd3a14
commit
9370b11684
@ -72,9 +72,6 @@ func (pd *PoolDecommissionInfo) Clone() *PoolDecommissionInfo {
|
||||
if pd == nil {
|
||||
return nil
|
||||
}
|
||||
if pd.StartTime.IsZero() {
|
||||
return nil
|
||||
}
|
||||
return &PoolDecommissionInfo{
|
||||
StartTime: pd.StartTime,
|
||||
StartSize: pd.StartSize,
|
||||
|
Loading…
Reference in New Issue
Block a user