mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
single drive: Remove bucket metadata on DeleteBucket (#15378)
from disk and in-memory map
This commit is contained in:
@@ -322,6 +322,10 @@ func (es *erasureSingle) DeleteBucket(ctx context.Context, bucket string, opts D
|
||||
defer NSUpdated(bucket, slashSeparator)
|
||||
|
||||
err := es.disk.DeleteVol(ctx, bucket, opts.Force)
|
||||
// Purge the entire bucket metadata entirely.
|
||||
deleteBucketMetadata(ctx, es, bucket)
|
||||
globalBucketMetadataSys.Remove(bucket)
|
||||
|
||||
return toObjectErr(err, bucket)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user