]> source.dussan.org Git - nextcloud-server.git/commit
Added part files for when writing chunks
authorVincent Petry <pvince81@owncloud.com>
Wed, 11 Feb 2015 15:26:03 +0000 (16:26 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Mon, 16 Mar 2015 09:13:13 +0000 (10:13 +0100)
commitb495ca492408c3560e654e0137fcae35ff35a576
treeee9136364c1dc8d6e3f3585954c06de2c5688e8e
parent1e0d8f1774747871c8cab03bccc03cd84ee96764
Added part files for when writing chunks

Whenever a chunk is being written, it is now written to a part file
first. This is to avoid a concurrent chunk upload to believe that the
former chunk already exists, even though it's not fully written.

This makes sure that the final file assembly is only done when all
chunks were successfully written.

Also added an extra unique id to chunk parts in case the same chunk is
uploaded twice concurrently.
lib/private/cache/file.php