Repository navigation
Fix: clean up old space image - #480
Merged
Merged
Conversation
2 of 9 tasks
kobergj
requested changes
Jan 5, 2026
kobergj
left a comment
Collaborator
There was a problem hiding this comment.
@max65482 very good idea. I like the approach. Just one small comment.
And could I also ask you to add a changelog to this PR? We need to keep track of changes for the next release. See for example this old PR: https://github.com/owncloud/reva/pull/443/changes#diff-1428f49bdd09346722ee0d07b93800829abdc5f8c142cf0b7bf2fd62bb8bf0e9
Author
|
Ok, implemented your suggestion and added changelog. |
kobergj
approved these changes
Jan 7, 2026
kobergj
left a comment
Collaborator
There was a problem hiding this comment.
I love it ❤️ Thank you for your contribution!
dragonchaser
pushed a commit
to opencloud-eu/reva
that referenced
this pull request
Nov 11, 2026
Setting a new space image left the previous image file in the space, so every image change wasted storage. We now remember the old image id and delete it after the new one was successfully set. A failed delete is ignored, the update itself already succeeded. backport of owncloud#480 Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, old space images are not cleaned up and take up storage space. They are a "memory leak". With this PR, the previous space image is deleted upon setting a new one.
Fixes owncloud/ocis#11821