diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2022-08-02 01:18:26 +0500 |
|---|---|---|
| committer | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2022-08-02 01:18:26 +0500 |
| commit | df9cc31a0a403daf2694048dbb3593e14ba72b6a (patch) | |
| tree | 2aee6a737e6556b018ac0d54d03690dc22f5569b /weed/server/volume_server_handlers_write.go | |
| parent | 0a5d3c3cf65516737f07ca6802bd6a2d2b327446 (diff) | |
| download | seaweedfs-df9cc31a0a403daf2694048dbb3593e14ba72b6a.tar.xz seaweedfs-df9cc31a0a403daf2694048dbb3593e14ba72b6a.zip | |
refactor
Diffstat (limited to 'weed/server/volume_server_handlers_write.go')
| -rw-r--r-- | weed/server/volume_server_handlers_write.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/weed/server/volume_server_handlers_write.go b/weed/server/volume_server_handlers_write.go index c25c40174..009980f56 100644 --- a/weed/server/volume_server_handlers_write.go +++ b/weed/server/volume_server_handlers_write.go @@ -11,19 +11,11 @@ import ( "github.com/seaweedfs/seaweedfs/weed/glog" "github.com/seaweedfs/seaweedfs/weed/operation" - "github.com/seaweedfs/seaweedfs/weed/stats" "github.com/seaweedfs/seaweedfs/weed/storage/needle" "github.com/seaweedfs/seaweedfs/weed/topology" ) func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) { - - stats.VolumeServerRequestCounter.WithLabelValues("post").Inc() - start := time.Now() - defer func() { - stats.VolumeServerRequestHistogram.WithLabelValues("post").Observe(time.Since(start).Seconds()) - }() - if e := r.ParseForm(); e != nil { glog.V(0).Infoln("form parse error:", e) writeJsonError(w, r, http.StatusBadRequest, e) @@ -79,13 +71,6 @@ func (vs *VolumeServer) PostHandler(w http.ResponseWriter, r *http.Request) { } func (vs *VolumeServer) DeleteHandler(w http.ResponseWriter, r *http.Request) { - - stats.VolumeServerRequestCounter.WithLabelValues("delete").Inc() - start := time.Now() - defer func() { - stats.VolumeServerRequestHistogram.WithLabelValues("delete").Observe(time.Since(start).Seconds()) - }() - n := new(needle.Needle) vid, fid, _, _, _ := parseURLPath(r.URL.Path) volumeId, _ := needle.NewVolumeId(vid) |
