diff --git a/cmd/erasure-server-pool-decom.go b/cmd/erasure-server-pool-decom.go index bcbf8876f..3048eff39 100644 --- a/cmd/erasure-server-pool-decom.go +++ b/cmd/erasure-server-pool-decom.go @@ -1097,11 +1097,9 @@ func (z *erasureServerPools) Decommission(ctx context.Context, indices ...int) e return err } - go func() { - for _, idx := range indices { - z.doDecommissionInRoutine(ctx, idx) - } - }() + for _, idx := range indices { + go z.doDecommissionInRoutine(ctx, idx) + } // Successfully started decommissioning. return nil