Browse Source

fix: weed/storage: dropped error

pull/4842/head
Lars Lehtonen 1 year ago
committed by Chris Lu
parent
commit
d83107efe5
  1. 4
      weed/storage/store_ec_delete.go

4
weed/storage/store_ec_delete.go

@ -36,7 +36,9 @@ func (s *Store) DeleteEcShardNeedle(ecVolume *erasure_coding.EcVolume, n *needle
func (s *Store) doDeleteNeedleFromAtLeastOneRemoteEcShards(ecVolume *erasure_coding.EcVolume, needleId types.NeedleId) error { func (s *Store) doDeleteNeedleFromAtLeastOneRemoteEcShards(ecVolume *erasure_coding.EcVolume, needleId types.NeedleId) error {
_, _, intervals, err := ecVolume.LocateEcShardNeedle(needleId, ecVolume.Version) _, _, intervals, err := ecVolume.LocateEcShardNeedle(needleId, ecVolume.Version)
if err != nil {
return err
}
if len(intervals) == 0 { if len(intervals) == 0 {
return erasure_coding.NotFoundError return erasure_coding.NotFoundError
} }

Loading…
Cancel
Save