Adding defer to the lock (#1785)

master
karthic rao 9 years ago committed by Harshavardhana
parent 41a5b3908b
commit 7278b90fe1
  1. 2
      xl-v1-bucket.go

@ -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…
Cancel
Save