mirror of
https://github.com/minio/minio.git
synced 2025-01-27 06:33:18 -05:00
Prioritize the bucket configs first during the decommissioning (#19393)
This commit is contained in:
parent
b435806d91
commit
ae4fb1b72e
@ -1404,16 +1404,18 @@ func (z *erasureServerPools) getBucketsToDecommission(ctx context.Context) ([]de
|
||||
|
||||
// Buckets data are dispersed in multiple zones/sets, make
|
||||
// sure to decommission the necessary metadata.
|
||||
decomBuckets = append(decomBuckets, decomBucketInfo{
|
||||
Name: minioMetaBucket,
|
||||
Prefix: minioConfigPrefix,
|
||||
})
|
||||
decomBuckets = append(decomBuckets, decomBucketInfo{
|
||||
Name: minioMetaBucket,
|
||||
Prefix: bucketMetaPrefix,
|
||||
})
|
||||
decomMetaBuckets := []decomBucketInfo{
|
||||
{
|
||||
Name: minioMetaBucket,
|
||||
Prefix: minioConfigPrefix,
|
||||
},
|
||||
{
|
||||
Name: minioMetaBucket,
|
||||
Prefix: bucketMetaPrefix,
|
||||
},
|
||||
}
|
||||
|
||||
return decomBuckets, nil
|
||||
return append(decomMetaBuckets, decomBuckets...), nil
|
||||
}
|
||||
|
||||
func (z *erasureServerPools) StartDecommission(ctx context.Context, indices ...int) (err error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user