mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
fix: improve bucket deletes we were leaving behind few files (#13364)
bucket deletes should purge entire bucket metadata appropriately, use rename() to move the metadata files to trash folder, for dangling buckets instead of doing recursive deletes, rename such buckets to trash folder as well. Bonus: reduce retry duration for listing to 200ms
This commit is contained in:
@@ -1448,7 +1448,8 @@ func (z *erasureServerPools) DeleteBucket(ctx context.Context, bucket string, fo
|
||||
}
|
||||
}
|
||||
|
||||
deleteBucketMetadata(ctx, z, bucket)
|
||||
// Purge the entire bucket metadata entirely.
|
||||
z.renameAll(ctx, minioMetaBucket, pathJoin(bucketMetaPrefix, bucket))
|
||||
|
||||
// Success.
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user