diff options
author | Joas Schilling <coding@schilljs.com> | 2017-08-09 10:56:16 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-08-09 10:56:16 +0200 |
commit | 66b61eb67dccedaeca6cb1f7e5141ba459fbf839 (patch) | |
tree | f7fd8993b2cb130215e20eff9e56478b86bdb4e9 /lib | |
parent | de911f6e5c394fc86f45edc58850fd2e7649913c (diff) | |
download | nextcloud-server-66b61eb67dccedaeca6cb1f7e5141ba459fbf839.tar.gz nextcloud-server-66b61eb67dccedaeca6cb1f7e5141ba459fbf839.zip |
Use indexed column path_hash to find the parent
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Repair/NC13/RepairInvalidPaths.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Repair/NC13/RepairInvalidPaths.php b/lib/private/Repair/NC13/RepairInvalidPaths.php index 29a0e1ed157..8e6a4ca0e37 100644 --- a/lib/private/Repair/NC13/RepairInvalidPaths.php +++ b/lib/private/Repair/NC13/RepairInvalidPaths.php @@ -92,11 +92,11 @@ class RepairInvalidPaths implements IRepairStep { $this->getIdQuery = $builder->select('fileid') ->from('filecache') ->where($builder->expr()->eq('storage', $builder->createParameter('storage'))) - ->andWhere($builder->expr()->eq('path', $builder->createParameter('path'))); + ->andWhere($builder->expr()->eq('path_hash', $builder->createParameter('path_hash'))); } $this->getIdQuery->setParameter('storage', $storage, IQueryBuilder::PARAM_INT); - $this->getIdQuery->setParameter('path', $path); + $this->getIdQuery->setParameter('path_hash', md5($path)); return $this->getIdQuery->execute()->fetchColumn(); } |