From dbd89bbae33c70175e1f7ca1b7897e8a2fe84f90 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 30 Jul 2018 17:38:52 -0700 Subject: [PATCH] Remove double RLocks for GetBucketInfo (#6209) --- cmd/bucket-handlers.go | 6 ------ 1 file changed, 6 deletions(-) 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