aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/filechunks_read.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2024-02-04 10:44:01 -0800
committerChris Lu <chris.lu@gmail.com>2024-02-04 10:44:01 -0800
commit53612b770c029af3747fd2bc96f854fb3685aadb (patch)
tree4395819cfefbf0fef0ccb1d3b942877764366cfa /weed/filer/filechunks_read.go
parent0a12301b3d3eb560d8f50c459cb58e62aea7d753 (diff)
parent56df44845f02d9c1f37e957df1b09fd1a6d9a7fd (diff)
downloadseaweedfs-53612b770c029af3747fd2bc96f854fb3685aadb.tar.xz
seaweedfs-53612b770c029af3747fd2bc96f854fb3685aadb.zip
Merge branch 'master' into mq-subscribe
Diffstat (limited to 'weed/filer/filechunks_read.go')
-rw-r--r--weed/filer/filechunks_read.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/filechunks_read.go b/weed/filer/filechunks_read.go
index b8768ed63..11b297a3c 100644
--- a/weed/filer/filechunks_read.go
+++ b/weed/filer/filechunks_read.go
@@ -38,10 +38,10 @@ func readResolvedChunks(chunks []*filer_pb.FileChunk, startOffset int64, stopOff
return int(a.ts - b.ts)
}
if a.isStart {
- return -1
+ return 1
}
if b.isStart {
- return 1
+ return -1
}
return 0
})