summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-17 13:04:18 +0200
committerGitHub <noreply@github.com>2018-07-17 13:04:18 +0200
commita7adc4cb3cdbf82b558665c87fd1ce1776268f2d (patch)
treef16d957cf2ff2bfd6bc3b3cfd8d88cd52f4b6a68 /lib
parenta155f804859d4afc579986be6472dfd80ade267d (diff)
parent19c49c8473635c57d1f8f40959aca481c31eefa8 (diff)
downloadnextcloud-server-a7adc4cb3cdbf82b558665c87fd1ce1776268f2d.tar.gz
nextcloud-server-a7adc4cb3cdbf82b558665c87fd1ce1776268f2d.zip
Merge pull request #10260 from nextcloud/bugfix/7974/improved-sql-for-fetching-quota
Use the path_hash instead of the path to query the filecache
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Config/UserMountCache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php
index cc655018f8d..a6741652308 100644
--- a/lib/private/Files/Config/UserMountCache.php
+++ b/lib/private/Files/Config/UserMountCache.php
@@ -375,7 +375,7 @@ class UserMountCache implements IUserMountCache {
->innerJoin('m', 'filecache', 'f',
$builder->expr()->andX(
$builder->expr()->eq('m.storage_id', 'f.storage'),
- $builder->expr()->eq('f.path', $builder->createNamedParameter('files'))
+ $builder->expr()->eq('f.path_hash', $builder->createNamedParameter(md5('files')))
))
->where($builder->expr()->eq('m.mount_point', $mountPoint))
->andWhere($builder->expr()->in('m.user_id', $builder->createNamedParameter($userIds, IQueryBuilder::PARAM_STR_ARRAY)));