mirror of
https://github.com/minio/minio.git
synced 2025-01-26 22:23:15 -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 {
|
if pd == nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
if pd.StartTime.IsZero() {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
return &PoolDecommissionInfo{
|
return &PoolDecommissionInfo{
|
||||||
StartTime: pd.StartTime,
|
StartTime: pd.StartTime,
|
||||||
StartSize: pd.StartSize,
|
StartSize: pd.StartSize,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user