upload new files in objectstore to a .part path first
This prevent the object store and cache from getting out of sync
when an objectstore silently fails or the php process get's killed
during the upload without giving us the chance to cleanup
Signed-off-by:
Robin Appelman <robin@icewind.nl>
Showing
- lib/private/Files/ObjectStore/ObjectStoreStorage.php 17 additions, 5 deletionslib/private/Files/ObjectStore/ObjectStoreStorage.php
- tests/lib/Files/ObjectStore/FailWriteObjectStore.php 53 additions, 0 deletionstests/lib/Files/ObjectStore/FailWriteObjectStore.php
- tests/lib/Files/ObjectStore/ObjectStoreStorageOverwrite.php 38 additions, 0 deletionstests/lib/Files/ObjectStore/ObjectStoreStorageOverwrite.php
- tests/lib/Files/ObjectStore/ObjectStoreStorageTest.php 16 additions, 1 deletiontests/lib/Files/ObjectStore/ObjectStoreStorageTest.php
Loading
Please register or sign in to comment