Fix twice increase metric counter (#4961)

This commit is contained in:
SmsS4
2023-10-30 08:05:27 -07:00
committed by GitHub
parent f95848ba7d
commit ba11331cc1
@@ -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
}