fix build error
This commit is contained in:
@@ -68,7 +68,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
|
|||||||
count, e := vs.store.ReadVolumeNeedle(volumeId, n)
|
count, e := vs.store.ReadVolumeNeedle(volumeId, n)
|
||||||
glog.V(4).Infoln("read bytes", count, "error", e)
|
glog.V(4).Infoln("read bytes", count, "error", e)
|
||||||
if e != nil || count < 0 {
|
if e != nil || count < 0 {
|
||||||
glog.V(0).Infof("read %s error:", r.URL.Path, e)
|
glog.V(0).Infof("read %s error: %v", r.URL.Path, e)
|
||||||
w.WriteHeader(http.StatusNotFound)
|
w.WriteHeader(http.StatusNotFound)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user