mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
single drive: Remove bucket metadata on DeleteBucket (#15378)
from disk and in-memory map
This commit is contained in:
parent
3faef829c5
commit
7d8c8de827
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user