From 8a0710cb73838dffc91b8f93d78625537ea149b9 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Wed, 16 Sep 2020 00:41:50 -0700 Subject: [PATCH] handle more than 2GB files related to https://github.com/chrislusf/seaweedfs/issues/1468 --- weed/server/webdav_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/webdav_server.go b/weed/server/webdav_server.go index c16840228..121c0d2bb 100644 --- a/weed/server/webdav_server.go +++ b/weed/server/webdav_server.go @@ -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) }