diff --git a/weed/storage/store_ec.go b/weed/storage/store_ec.go index 8caaafc4d..6a20de6d0 100644 --- a/weed/storage/store_ec.go +++ b/weed/storage/store_ec.go @@ -3,13 +3,14 @@ package storage import ( "context" "fmt" - "github.com/seaweedfs/seaweedfs/weed/pb" - "golang.org/x/exp/slices" "io" "os" + "slices" "sync" "time" + "github.com/seaweedfs/seaweedfs/weed/pb" + "github.com/klauspost/reedsolomon" "github.com/seaweedfs/seaweedfs/weed/glog" @@ -405,7 +406,7 @@ func (s *Store) EcVolumes() (ecVolumes []*erasure_coding.EcVolume) { location.ecVolumesLock.RUnlock() } slices.SortFunc(ecVolumes, func(a, b *erasure_coding.EcVolume) int { - return int(b.VolumeId - a.VolumeId) + return int(a.VolumeId) - int(b.VolumeId) }) return ecVolumes }