Adding defer to the lock (#1785)

This commit is contained in:
karthic rao 2016-05-28 15:13:01 +05:30 committed by Harshavardhana
parent 41a5b3908b
commit 7278b90fe1

View File

@ -178,7 +178,7 @@ func (xl xlObjects) DeleteBucket(bucket string) error {
} }
nsMutex.Lock(bucket, "") nsMutex.Lock(bucket, "")
nsMutex.Unlock(bucket, "") defer nsMutex.Unlock(bucket, "")
// Collect if all disks report volume not found. // Collect if all disks report volume not found.
var volumeNotFoundErrCnt int var volumeNotFoundErrCnt int