aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filechunks.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-22 01:37:46 -0700
committerChris Lu <chris.lu@gmail.com>2020-03-22 01:37:46 -0700
commitae2ee379c065f97f4661db926e1e14808940b607 (patch)
treeb2f264f466f72b264f64853aab249ea1421d0e24 /weed/filer2/filechunks.go
parent2bdd936fb6adbea465d28b0d6cb9009e1c5d4ab7 (diff)
downloadseaweedfs-ae2ee379c065f97f4661db926e1e14808940b607.tar.xz
seaweedfs-ae2ee379c065f97f4661db926e1e14808940b607.zip
consistent 64bit size
Diffstat (limited to 'weed/filer2/filechunks.go')
-rw-r--r--weed/filer2/filechunks.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.go
index 711488df1..fe7841fa7 100644
--- a/weed/filer2/filechunks.go
+++ b/weed/filer2/filechunks.go
@@ -75,7 +75,7 @@ type ChunkView struct {
isGzipped bool
}
-func ViewFromChunks(chunks []*filer_pb.FileChunk, offset int64, size int) (views []*ChunkView) {
+func ViewFromChunks(chunks []*filer_pb.FileChunk, offset int64, size int64) (views []*ChunkView) {
visibles := NonOverlappingVisibleIntervals(chunks)
@@ -83,9 +83,9 @@ func ViewFromChunks(chunks []*filer_pb.FileChunk, offset int64, size int) (views
}
-func ViewFromVisibleIntervals(visibles []VisibleInterval, offset int64, size int) (views []*ChunkView) {
+func ViewFromVisibleIntervals(visibles []VisibleInterval, offset int64, size int64) (views []*ChunkView) {
- stop := offset + int64(size)
+ stop := offset + size
for _, chunk := range visibles {