diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-05-28 05:39:12 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-05-28 05:39:12 -0700 |
| commit | 07e0d13d2d13f53a6540e836189741186aaf060e (patch) | |
| tree | 9726f7487bfdf12f93095c03aefa59fa2f49c967 /weed/filer2/filechunks.go | |
| parent | dd5661b2976750bd142a3ccc1ac217500ca41ccc (diff) | |
| download | seaweedfs-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.go | 2 |
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) |
