revert ErrXyz to ErrorXyz temporarily.

This commit is contained in:
bingoohuang
2021-02-20 16:57:07 +08:00
parent 50df484d86
commit ee7cdf3668
7 changed files with 16 additions and 16 deletions

View File

@@ -93,7 +93,7 @@ func (vs *VolumeServer) GetOrHeadHandler(w http.ResponseWriter, r *http.Request)
} else if hasEcVolume {
count, err = vs.store.ReadEcShardNeedle(volumeId, n)
}
if err != nil && err != storage.ErrDeleted && r.FormValue("type") != "replicate" && hasVolume {
if err != nil && err != storage.ErrorDeleted && r.FormValue("type") != "replicate" && 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
}