Skip to content

Conversation

@icewind1991
Copy link
Member

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

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 <[email protected]>
@rullzer
Copy link
Member

rullzer commented Dec 14, 2018

So why only for new files? ANd not in general?

@MorrisJobke
Copy link
Member

@icewind1991 🏓

@icewind1991
Copy link
Member Author

So why only for new files? ANd not in general?

For existing files we can't do this because we use fileid as object name and object stores generally don't support renaming objects.
Thus we can upload the new file as a different object and "move it into place" after successful upload.

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code makes sense 👍

@MorrisJobke MorrisJobke merged commit 5a27e54 into master Jan 14, 2019
@MorrisJobke MorrisJobke deleted the objectstore-write-exists branch January 14, 2019 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants