From 66b61eb67dccedaeca6cb1f7e5141ba459fbf839 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 9 Aug 2017 10:56:16 +0200 Subject: [PATCH] Use indexed column path_hash to find the parent Signed-off-by: Joas Schilling --- lib/private/Repair/NC13/RepairInvalidPaths.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Repair/NC13/RepairInvalidPaths.php b/lib/private/Repair/NC13/RepairInvalidPaths.php index 29a0e1ed15..8e6a4ca0e3 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(); }