mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
Clean up metadata cache when deleting bucket (#10802)
Metadata caches were left behind when deleting a bucket.
This commit is contained in:
1 parent
b686bb9c83
commit
422898d9b3
3 files changed
+18
-1
No files matched your search
@@ -538,7 +538,9 @@ func (s *peerRESTServer) DeleteBucketMetadataHandler(w http.ResponseWriter, r *h
|
||||
}
|
||||
|
||||
globalBucketMetadataSys.Remove(bucketName)
|
||||
w.(http.Flusher).Flush()
|
||||
if localMetacacheMgr != nil {
|
||||
localMetacacheMgr.deleteBucketCache(bucketName)
|
||||
}
|
||||
}
|
||||
|
||||
// LoadBucketMetadataHandler - reloads in memory bucket metadata
|
||||
|
||||
Reference in new issue
Block a user