Revert "Revert "Merge branch 'master' of https://github.com/seaweedfs/seaweedfs""
This reverts commit 8cb42c39
This commit is contained in:
@@ -400,8 +400,8 @@ func (s *Store) EcVolumes() (ecVolumes []*erasure_coding.EcVolume) {
|
||||
}
|
||||
location.ecVolumesLock.RUnlock()
|
||||
}
|
||||
slices.SortFunc(ecVolumes, func(a, b *erasure_coding.EcVolume) bool {
|
||||
return a.VolumeId > b.VolumeId
|
||||
slices.SortFunc(ecVolumes, func(a, b *erasure_coding.EcVolume) int {
|
||||
return int(b.VolumeId - a.VolumeId)
|
||||
})
|
||||
return ecVolumes
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user