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/filer/stream.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/filer/stream.go')
| -rw-r--r-- | weed/filer/stream.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/filer/stream.go b/weed/filer/stream.go index eb8f0f3a1..9e3bb5f76 100644 --- a/weed/filer/stream.go +++ b/weed/filer/stream.go @@ -45,11 +45,11 @@ func isSameChunks(a, b []*filer_pb.FileChunk) bool { if len(a) != len(b) { return false } - slices.SortFunc(a, func(i, j *filer_pb.FileChunk) int { - return strings.Compare(i.ETag, j.ETag) + slices.SortFunc(a, func(i, j *filer_pb.FileChunk) bool { + return strings.Compare(i.ETag, j.ETag) < 0 }) - slices.SortFunc(b, func(i, j *filer_pb.FileChunk) int { - return strings.Compare(i.ETag, j.ETag) + slices.SortFunc(b, func(i, j *filer_pb.FileChunk) bool { + return strings.Compare(i.ETag, j.ETag) < 0 }) for i := 0; i < len(a); i++ { if a[i].ETag != b[i].ETag { |
