mirror of
https://github.com/minio/minio.git
synced 2025-01-24 13:13:16 -05:00
fix: keep decommission in a go-routine (#17496)
This was removed by mistake in #17491
This commit is contained in:
parent
d8dad5c9ea
commit
eefa047974
@ -1114,11 +1114,13 @@ func (z *erasureServerPools) Decommission(ctx context.Context, indices ...int) e
|
||||
return err
|
||||
}
|
||||
|
||||
for _, idx := range indices {
|
||||
// decommission all pools serially one after
|
||||
// the other.
|
||||
z.doDecommissionInRoutine(ctx, idx)
|
||||
}
|
||||
go func() {
|
||||
for _, idx := range indices {
|
||||
// decommission all pools serially one after
|
||||
// the other.
|
||||
z.doDecommissionInRoutine(ctx, idx)
|
||||
}
|
||||
}()
|
||||
|
||||
// Successfully started decommissioning.
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user