From ba11331cc1326b24a123170d41ad6271dbc51b75 Mon Sep 17 00:00:00 2001 From: SmsS4 <36403983+SmsS4@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:35:27 +0330 Subject: [PATCH] Fix twice increase metric counter (#4961) --- weed/server/volume_server_handlers_read.go | 1 - 1 file changed, 1 deletion(-) diff --git a/weed/server/volume_server_handlers_read.go b/weed/server/volume_server_handlers_read.go index 30813073c..590cc77f0 100644 --- a/weed/server/volume_server_handlers_read.go +++ b/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 { 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 }