mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Adding defer to the lock (#1785)
This commit is contained in:
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
|
||||
|
Loading…
Reference in New Issue
Block a user