Browse Source

handle more than 2GB files

related to https://github.com/chrislusf/seaweedfs/issues/1468
pull/1475/head
Chris Lu 4 years ago
parent
commit
8a0710cb73
  1. 2
      weed/server/webdav_server.go

2
weed/server/webdav_server.go

@ -480,7 +480,7 @@ func (f *WebDavFile) Read(p []byte) (readSize int, err error) {
f.reader = nil f.reader = nil
} }
if 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) f.reader = filer.NewChunkReaderAtFromClient(f.fs, chunkViews, f.fs.chunkCache, fileSize)
} }

Loading…
Cancel
Save