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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, idx := range indices {
|
go func() {
|
||||||
// decommission all pools serially one after
|
for _, idx := range indices {
|
||||||
// the other.
|
// decommission all pools serially one after
|
||||||
z.doDecommissionInRoutine(ctx, idx)
|
// the other.
|
||||||
}
|
z.doDecommissionInRoutine(ctx, idx)
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
// Successfully started decommissioning.
|
// Successfully started decommissioning.
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user