renaming to ErrXyz

This commit is contained in:
bingoohuang
2021-02-19 15:59:55 +08:00
parent 352ac2f271
commit 7ffe736d20
7 changed files with 18 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.ErrorDeleted && r.FormValue("type") != "replicate" && hasVolume {
if err != nil && err != storage.ErrDeleted && 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
}