mirror of
https://github.com/minio/minio
synced 2024-09-30 05:04:22 +00: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 a new issue