handle more than 2GB files

related to https://github.com/chrislusf/seaweedfs/issues/1468
This commit is contained in:
Chris Lu 2020-09-16 00:41:50 -07:00
parent 854007bc98
commit 8a0710cb73

View file

@ -480,7 +480,7 @@ func (f *WebDavFile) Read(p []byte) (readSize int, err error) {
f.reader = nil
}
if f.reader == nil {
chunkViews := filer.ViewFromVisibleIntervals(f.entryViewCache, 0, math.MaxInt32)
chunkViews := filer.ViewFromVisibleIntervals(f.entryViewCache, 0, math.MaxInt64)
f.reader = filer.NewChunkReaderAtFromClient(f.fs, chunkViews, f.fs.chunkCache, fileSize)
}