Clean up targets properly on bucket deletion (#12565)

This commit is contained in:
Poorna Krishnamoorthy
2021-06-24 08:39:58 -07:00
committed by GitHub
parent d40268d899
commit ba6e9682e5
3 changed files with 16 additions and 0 deletions

View File

@@ -521,6 +521,7 @@ func (s *peerRESTServer) DeleteBucketMetadataHandler(w http.ResponseWriter, r *h
globalReplicationStats.Delete(bucketName)
globalBucketMetadataSys.Remove(bucketName)
globalBucketTargetSys.Delete(bucketName)
if localMetacacheMgr != nil {
localMetacacheMgr.deleteBucketCache(bucketName)
}