-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
search files by id in shared storages last #15776
Conversation
lib/private/Files/View.php
Outdated
|
||
// put non shared mounts in front of the shared mount | ||
// this prevent unneeded recursion into shares | ||
$sharedMount = array_filter($mounts, function(IMountPoint $mountPoint) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why don't u use a custom sort function here? Is this faster? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, changed
this prevents unneeded recursion when the file is not in the share Signed-off-by: Robin Appelman <robin@icewind.nl>
728bd9d
to
98dd526
Compare
/backport to stable16 |
/backport to stable15 |
this seems to fix also possible ServiceUnavailale exceptions when unsharing (in some conditions i could not reproduce though) |
backport to stable16 in #15799 |
backport to stable15 in #15800 |
this prevents unneeded recursion when the file is not in the share
Signed-off-by: Robin Appelman robin@icewind.nl