mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 22:43:36 +08:00
fix: weed/storage: dropped error
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user