Skip to content

Remove oc_storages entries after removing ext storages - #19610

Merged
DeepDiver1975 merged 1 commit into
masterfrom
ext-deletestoragefromdatabase
Oct 6, 2015
Merged

DeepDiver1975 merged 1 commit into
masterfrom
ext-deletestoragefromdatabase

Conversation

@PVince81

@PVince81 PVince81 commented Oct 6, 2015

Copy link
Copy Markdown
Contributor

When removing external storages, either system-wide or user-wide,
automatically remove the matching oc_storages and oc_filecache entries.

This can only work if the backend configuration doesn't contain any
substitution variable $user in which case the storage id cannot be
computed, so this case is ignored for now.

Fixes #10820

@icewind1991 @Xenopathic @DeepDiver1975 @schiesbn @MorrisJobke

@PVince81 PVince81 added this to the 8.2-current milestone Oct 6, 2015
@mmattel

mmattel commented Oct 6, 2015

Copy link
Copy Markdown
Contributor

not tested but 👍 😄

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please use !==

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

argh, mistyped after transforming it from >= 0. Fun fact: PHP doesn't return -1 like other languages do... and "false >= 0"

When removing external storages, either system-wide or user-wide,
automatically remove the matching oc_storages and oc_filecache entries.

This can only work if the backend configuration doesn't contain any
substitution variable $user in which case the storage id cannot be
computed, so this case is ignored for now.
@PVince81
PVince81 force-pushed the ext-deletestoragefromdatabase branch from 0d1d979 to bbebffb Compare October 6, 2015 15:33
@PVince81

PVince81 commented Oct 6, 2015

Copy link
Copy Markdown
Contributor Author

@MorrisJobke done

@karlitschek

Copy link
Copy Markdown
Contributor

wow. 👍

@DeepDiver1975

Copy link
Copy Markdown
Contributor

👍

DeepDiver1975 added a commit that referenced this pull request Oct 6, 2015
Remove oc_storages entries after removing ext storages
@DeepDiver1975
DeepDiver1975 merged commit 648b86a into master Oct 6, 2015
@DeepDiver1975
DeepDiver1975 deleted the ext-deletestoragefromdatabase branch October 6, 2015 19:59
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 8, 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.

oc_filecache not cleared when external mount removed

5 participants