From 48cca4e54f0626e55dbe0f503098c23d1a950a2b Mon Sep 17 00:00:00 2001 From: chrislu Date: Sat, 4 Jun 2022 19:11:06 -0700 Subject: [PATCH] remove unused logic --- weed/server/volume_server_handlers_read.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/volume_server_handlers_read.go b/weed/server/volume_server_handlers_read.go index 203f6c07d..b9213a15d 100644 --- a/weed/server/volume_server_handlers_read.go +++ b/weed/server/volume_server_handlers_read.go @@ -141,7 +141,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request) vs.inFlightDownloadDataLimitCond.Signal() }() - if err != nil && err != storage.ErrorDeleted && r.FormValue("type") != "replicate" && hasVolume { + if err != nil && err != storage.ErrorDeleted && hasVolume { glog.V(4).Infof("read needle: %v", err) // start to fix it from other replicas, if not deleted and hasVolume and is not a replicated request }