Skip to content

Commit

Permalink
Merge pull request cubefs#570 from ZhuZhengyi/ob_fix
Browse files Browse the repository at this point in the history
Fix: immediately return when duplicastedBucket error occur by create …
  • Loading branch information
awzhgw authored May 21, 2020
2 parents cd5fe77 + 4a14460 commit 7754a60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions objectnode/api_handler_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (o *ObjectNode) createBucketHandler(w http.ResponseWriter, r *http.Request)
if vol, _ := o.getVol(bucket); vol != nil {
log.LogInfof("create bucket failed: duplicated bucket name[%v]", bucket)
_ = DuplicatedBucket.ServeResponse(w, r)
return
}
auth := parseRequestAuthInfo(r)
var userInfo *proto.UserInfo
Expand Down

0 comments on commit 7754a60

Please sign in to comment.