aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/filechunks.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-28 05:39:12 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-28 05:39:12 -0700
commit07e0d13d2d13f53a6540e836189741186aaf060e (patch)
tree9726f7487bfdf12f93095c03aefa59fa2f49c967 /weed/filer2/filechunks.go
parentdd5661b2976750bd142a3ccc1ac217500ca41ccc (diff)
downloadseaweedfs-07e0d13d2d13f53a6540e836189741186aaf060e.tar.xz
seaweedfs-07e0d13d2d13f53a6540e836189741186aaf060e.zip
filer support reading multiple chunks, with range support
Diffstat (limited to 'weed/filer2/filechunks.go')
-rw-r--r--weed/filer2/filechunks.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.go
index c4c77d270..0ac7bb43b 100644
--- a/weed/filer2/filechunks.go
+++ b/weed/filer2/filechunks.go
@@ -58,7 +58,7 @@ type ChunkView struct {
LogicOffset int64
}
-func ReadFromChunks(chunks []*filer_pb.FileChunk, offset int64, size int) (views []*ChunkView) {
+func ViewFromChunks(chunks []*filer_pb.FileChunk, offset int64, size int) (views []*ChunkView) {
visibles := nonOverlappingVisibleIntervals(chunks)