diff options
| author | chrislu <chris.lu@gmail.com> | 2023-09-18 16:12:50 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2023-09-18 16:12:50 -0700 |
| commit | 8cb42c39adbbe7f082009cf91eccb4d2dc527235 (patch) | |
| tree | a4a54f1e1211e273bede5ecc39ed9513316c596d /weed/storage/disk_location_ec.go | |
| parent | 2e5aa06026750c99ea283181974d2ccfe5eb0468 (diff) | |
| download | seaweedfs-8cb42c39adbbe7f082009cf91eccb4d2dc527235.tar.xz seaweedfs-8cb42c39adbbe7f082009cf91eccb4d2dc527235.zip | |
Revert "Merge branch 'master' of https://github.com/seaweedfs/seaweedfs"
This reverts commit 2e5aa06026750c99ea283181974d2ccfe5eb0468, reversing
changes made to 4d414f54a224142f3f4d934f4af3b5dceb6fec6b.
Diffstat (limited to 'weed/storage/disk_location_ec.go')
| -rw-r--r-- | weed/storage/disk_location_ec.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/weed/storage/disk_location_ec.go b/weed/storage/disk_location_ec.go index 8315fe363..5af354277 100644 --- a/weed/storage/disk_location_ec.go +++ b/weed/storage/disk_location_ec.go @@ -7,7 +7,6 @@ import ( "path" "regexp" "strconv" - "strings" "github.com/seaweedfs/seaweedfs/weed/storage/erasure_coding" "github.com/seaweedfs/seaweedfs/weed/storage/needle" @@ -145,8 +144,8 @@ func (l *DiskLocation) loadAllEcShards() (err error) { } dirEntries = append(dirEntries, indexDirEntries...) } - slices.SortFunc(dirEntries, func(a, b os.DirEntry) int { - return strings.Compare(a.Name(), b.Name()) + slices.SortFunc(dirEntries, func(a, b os.DirEntry) bool { + return a.Name() < b.Name() }) var sameVolumeShards []string var prevVolumeId needle.VolumeId |
