Upload: Read file chunks gradually #7226
authorChristian Kamm <mail@ckamm.de>
Thu, 6 Jun 2019 10:22:02 +0000 (12:22 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:51 +0000 (10:58 +0100)
commit452ed56571ae18614a37e0266a42f9037e09b5c4
tree86cbbc5ae0fc271f4d0521f0e4046ddc59b1ce07
parenta7852e3aba13756662ae9db6ed4bc3da4700f41a
Upload: Read file chunks gradually #7226

Instead of all at once, to reduce peak memory use.

Changing UploadDevice in this way requires keeping the file open for the
duration of the upload. It also means changes to open(), seek(), close()
to ensure that uses of the device work right when a request needs to
be resent.
src/libsync/propagateupload.cpp
src/libsync/propagateupload.h
src/libsync/propagateuploadng.cpp
src/libsync/propagateuploadv1.cpp