-
-
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
Reducing queries in ScanFiles.php #40019
base: master
Are you sure you want to change the base?
Conversation
} | ||
|
||
if ($lastUser === $user) { | ||
$this->logger->warning("User $user still has unscanned files after running background scan, background scan might be stopped prematurely"); | ||
if ($this->config->getSystemValue('loglevel') > ILogger::WARN) { |
Check notice
Code scanning / Psalm
DeprecatedClass
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.
Checking the code there are not good alternatives.
There is a Psr\Log\LogLevel
but it is a string, not a int.
Do you think the Samba's failure is my fault? I think it just not sleeped enough or something like that. https://drone.nextcloud.com/nextcloud/server/39214/7/3 A question, I see it usually fails the "Cypress" test in every PR. I'm doing something wrong? |
Signed-off-by: FedericoHeichou <federicoheichou@gmail.com>
Signed-off-by: FedericoHeichou <federicoheichou@gmail.com>
ff1c7ae
to
6740a19
Compare
Summary
By changing the approach to the problem, it will guarantee that all users are scanned and it will only perform 2 (or 3) fast queries without performing joins.
TODO
Checklist