diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-07-16 16:10:34 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-08-20 14:22:52 +0200 |
commit | 391e693adf91430668781a92a6df2e5fafab2b03 (patch) | |
tree | d9d9c55cc505284f9e6bf9612f8da2bdbd9bcde1 /lib/private | |
parent | f2f723c7c83798ccb65967b7329dd5b7ec78ea78 (diff) | |
download | nextcloud-server-391e693adf91430668781a92a6df2e5fafab2b03.tar.gz nextcloud-server-391e693adf91430668781a92a6df2e5fafab2b03.zip |
Use the path_hash instead of the path to query the filecache
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Files/Config/UserMountCache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php index 384e6e5e457..255314c4e83 100644 --- a/lib/private/Files/Config/UserMountCache.php +++ b/lib/private/Files/Config/UserMountCache.php @@ -376,7 +376,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))); |