summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-07-16 16:10:34 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-07-16 16:10:34 +0200
commit19c49c8473635c57d1f8f40959aca481c31eefa8 (patch)
treeaba14d97e68d9196c9679143e26ba84a728fa55d
parent82021b2b1bd6e6ae9c85564ba614797a1110e29c (diff)
downloadnextcloud-server-19c49c8473635c57d1f8f40959aca481c31eefa8.tar.gz
nextcloud-server-19c49c8473635c57d1f8f40959aca481c31eefa8.zip
Use the path_hash instead of the path to query the filecache
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-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)));