From d67a846ec4f9bd14ac8df9adea7c81943fe5f5c5 Mon Sep 17 00:00:00 2001 From: Florian Schwab <231497+ydkn@users.noreply.github.com> Date: Tue, 24 Jan 2023 16:07:59 +0100 Subject: [PATCH] allow restarting of decommissioning if completed, failed or canceld (#16464) --- cmd/erasure-server-pool-decom.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/erasure-server-pool-decom.go b/cmd/erasure-server-pool-decom.go index c776a54ae..21fe75268 100644 --- a/cmd/erasure-server-pool-decom.go +++ b/cmd/erasure-server-pool-decom.go @@ -569,7 +569,10 @@ func (z *erasureServerPools) IsDecommissionRunning() bool { defer z.poolMetaMutex.RUnlock() meta := z.poolMeta for _, pool := range meta.Pools { - if pool.Decommission != nil { + if pool.Decommission != nil && + !pool.Decommission.Complete && + !pool.Decommission.Failed && + !pool.Decommission.Canceled { return true } }