diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-03-27 04:35:31 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-03-27 04:35:31 -0700 |
| commit | f06ca04451037bf4b250da55d408d06fc691c760 (patch) | |
| tree | 4acb5bad3ff79b071c150be39dddd20c3f62c484 /weed/filer2/stream.go | |
| parent | e1911760a773fadc236a3463cd2d6a4c0f2dd5d1 (diff) | |
| download | seaweedfs-f06ca04451037bf4b250da55d408d06fc691c760.tar.xz seaweedfs-f06ca04451037bf4b250da55d408d06fc691c760.zip | |
avoid overflow
Diffstat (limited to 'weed/filer2/stream.go')
| -rw-r--r-- | weed/filer2/stream.go | 2 |
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, |
