diff --git a/cmd/bucket-handlers.go b/cmd/bucket-handlers.go index 187fab9e5..c19d9ac7f 100644 --- a/cmd/bucket-handlers.go +++ b/cmd/bucket-handlers.go @@ -102,12 +102,6 @@ func (api objectAPIHandlers) GetBucketLocationHandler(w http.ResponseWriter, r * return } - bucketLock := globalNSMutex.NewNSLock(bucket, "") - if err := bucketLock.GetRLock(globalObjectTimeout); err != nil { - writeErrorResponse(w, toAPIErrorCode(err), r.URL) - return - } - defer bucketLock.RUnlock() getBucketInfo := objectAPI.GetBucketInfo if api.CacheAPI() != nil { getBucketInfo = api.CacheAPI().GetBucketInfo