Skip to content

[stable9] Properly expire ext storage versions (#26601)#26682

Merged
DeepDiver1975 merged 1 commit into
stable9from
stable9-ext-storage-expireversions
Nov 22, 2016
Merged

[stable9] Properly expire ext storage versions (#26601)#26682
DeepDiver1975 merged 1 commit into
stable9from
stable9-ext-storage-expireversions

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

Backport of #26601 to stable9

@jvillafanez @DeepDiver1975

* Properly expire ext storage versions

System-wide external storages have no real owner so the current user is
used as owner. However when running cron.php there is no current user,
so no expiry can be done.

This fix adds an user argument to the expire() function to tell for
which user to expire files. This information is anyway always available
now through the expire command job.

* Move version expire setupFS into the expire function

* Add comment about not tearing down in version Storage::expire()
@PVince81 PVince81 added this to the 9.0.7 milestone Nov 22, 2016
@mention-bot

Copy link
Copy Markdown

@PVince81, thanks for your PR! By analyzing the history of the files in this pull request, we identified @icewind1991, @MorrisJobke and @scrutinizer-auto-fixer to be potential reviewers.

@jvillafanez

Copy link
Copy Markdown
Member

👍

@PVince81

Copy link
Copy Markdown
Contributor Author

Retested, still works.

@DeepDiver1975
DeepDiver1975 merged commit 2924094 into stable9 Nov 22, 2016
@DeepDiver1975
DeepDiver1975 deleted the stable9-ext-storage-expireversions branch November 22, 2016 16:16
@lock

lock Bot commented Aug 4, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants