Browse Source

Fix twice increase metric counter (#4961)

pull/4962/head
SmsS4 1 year ago
committed by GitHub
parent
commit
ba11331cc1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      weed/server/volume_server_handlers_read.go

1
weed/server/volume_server_handlers_read.go

@ -166,7 +166,6 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
} }
if n.Cookie != cookie { if n.Cookie != cookie {
glog.V(0).Infof("request %s with cookie:%x expected:%x from %s agent %s", r.URL.Path, cookie, n.Cookie, r.RemoteAddr, r.UserAgent()) glog.V(0).Infof("request %s with cookie:%x expected:%x from %s agent %s", r.URL.Path, cookie, n.Cookie, r.RemoteAddr, r.UserAgent())
stats.VolumeServerRequestCounter.WithLabelValues(stats.ErrorGetNotFound).Inc()
NotFound(w) NotFound(w)
return return
} }

Loading…
Cancel
Save