Fix twice increase metric counter (#4961)

This commit is contained in:
SmsS4 2023-10-30 18:35:27 +03:30 committed by GitHub
parent f95848ba7d
commit ba11331cc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,7 +166,6 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
}
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())
stats.VolumeServerRequestCounter.WithLabelValues(stats.ErrorGetNotFound).Inc()
NotFound(w)
return
}