aboutsummaryrefslogtreecommitdiff
path: root/weed/filer2/stream.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-03-27 04:35:31 -0700
committerChris Lu <chris.lu@gmail.com>2020-03-27 04:35:31 -0700
commitf06ca04451037bf4b250da55d408d06fc691c760 (patch)
tree4acb5bad3ff79b071c150be39dddd20c3f62c484 /weed/filer2/stream.go
parente1911760a773fadc236a3463cd2d6a4c0f2dd5d1 (diff)
downloadseaweedfs-f06ca04451037bf4b250da55d408d06fc691c760.tar.xz
seaweedfs-f06ca04451037bf4b250da55d408d06fc691c760.zip
avoid overflow
Diffstat (limited to 'weed/filer2/stream.go')
-rw-r--r--weed/filer2/stream.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer2/stream.go b/weed/filer2/stream.go
index d71ef71f6..6dbc1ce72 100644
--- a/weed/filer2/stream.go
+++ b/weed/filer2/stream.go
@@ -61,7 +61,7 @@ var _ = io.ReadSeeker(&ChunkStreamReader{})
func NewChunkStreamReaderFromFiler(masterClient *wdclient.MasterClient, chunks []*filer_pb.FileChunk) *ChunkStreamReader {
- chunkViews := ViewFromChunks(chunks, 0, math.MaxInt64)
+ chunkViews := ViewFromChunks(chunks, 0, math.MaxInt32)
return &ChunkStreamReader{
chunkViews: chunkViews,