mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
Adding defer to the lock (#1785)
This commit is contained in:
committed by
Harshavardhana
parent
41a5b3908b
commit
7278b90fe1
@@ -178,7 +178,7 @@ func (xl xlObjects) DeleteBucket(bucket string) error {
|
||||
}
|
||||
|
||||
nsMutex.Lock(bucket, "")
|
||||
nsMutex.Unlock(bucket, "")
|
||||
defer nsMutex.Unlock(bucket, "")
|
||||
|
||||
// Collect if all disks report volume not found.
|
||||
var volumeNotFoundErrCnt int
|
||||
|
||||
Reference in New Issue
Block a user