-
-
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
perf: use more optimized way to get user storage info in ocs user info #49476
base: master
Are you sure you want to change the base?
Conversation
1706c3e
to
e004ce7
Compare
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.
quota_include_external_storage
is no longer read, is that a regression?
Also, lastSeenQuotaUsage
is no more updated, we could fill it with the computed quota, I think?
e004ce7
to
a4ed1b0
Compare
made it fallback to the old implementation when |
906b89b
to
5958fcc
Compare
/* In case the Exception left things in a bad state */ | ||
\OC_Util::tearDownFS(); |
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.
That should still happen if $includeExternal is true, no?
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.
It is, inside the if ($includeExternal) {
block
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.
But if it throws you still end up in this catch block, or did I miss something?
5958fcc
to
1a913a8
Compare
…o when possible Signed-off-by: Robin Appelman <[email protected]>
1a913a8
to
118ff88
Compare
Instead of doing a full setup etc. We just get quota directly from the user, and the used space directly from the cache.
This means that we only need to setup the home storage for any user, instead of all storages the user has access to.
This does lead to a minor change in behavior, that for users with unlimited quota, the reported quota no longer falls back to the free space in the data directory. As far as I can tell these fields aren't used in the accounts ui and that behavior isn't something that can be relied on anyway, since s3 based setups (and various others) won't have this behavior anyway.