aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/stream.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/stream.go
parent2bdd936fb6adbea465d28b0d6cb9009e1c5d4ab7 (diff)
downloadseaweedfs-ae2ee379c065f97f4661db926e1e14808940b607.tar.xz
seaweedfs-ae2ee379c065f97f4661db926e1e14808940b607.zip
consistent 64bit size
Diffstat (limited to 'weed/filer2/stream.go')
-rw-r--r--weed/filer2/stream.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer2/stream.go b/weed/filer2/stream.go
index 0f7c3c176..8819070ff 100644
--- a/weed/filer2/stream.go
+++ b/weed/filer2/stream.go
@@ -14,7 +14,7 @@ import (
"github.com/chrislusf/seaweedfs/weed/wdclient"
)
-func StreamContent(masterClient *wdclient.MasterClient, w io.Writer, chunks []*filer_pb.FileChunk, offset int64, size int) error {
+func StreamContent(masterClient *wdclient.MasterClient, w io.Writer, chunks []*filer_pb.FileChunk, offset int64, size int64) error {
chunkViews := ViewFromChunks(chunks, offset, size)
@@ -61,7 +61,7 @@ var _ = io.ReadSeeker(&ChunkStreamReader{})
func NewChunkStreamReaderFromFiler(masterClient *wdclient.MasterClient, chunks []*filer_pb.FileChunk) *ChunkStreamReader {
- chunkViews := ViewFromChunks(chunks, 0, math.MaxInt32)
+ chunkViews := ViewFromChunks(chunks, 0, math.MaxInt64)
return &ChunkStreamReader{
chunkViews: chunkViews,