mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-13 15:29:12 +01:00
volume: keep master lookup error detail out of the proxy error response
This commit is contained in:
1 parent
18b71ed0ef
commit
1ef76dfb12
1 file changed
+1
-1
@@ -68,7 +68,7 @@ func (vs *VolumeServer) proxyReqToTargetServer(w http.ResponseWriter, r *http.Re
|
||||
lookupResult, err := operation.LookupVolumeId(vs.GetMaster, vs.grpcDialOption, volumeId.String())
|
||||
if err != nil && vs.ReadMode == "proxy" {
|
||||
glog.V(0).InfofCtx(r.Context(), "lookup error: %v %s", err, r.URL.Path)
|
||||
InternalError(w, r, err)
|
||||
InternalError(w, r, nil)
|
||||
return
|
||||
}
|
||||
if err != nil || len(lookupResult.Locations) <= 0 {
|
||||
|
||||
Reference in new issue
Block a user