summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-08-09 13:53:23 +0200
committerGitHub <noreply@github.com>2017-08-09 13:53:23 +0200
commite08768ee04635d017a3f2f87e7ac6b1859f733dc (patch)
treefe35ce29c47d9d7d6437e92124fda2b62b65bf9d /lib
parentc2f7396d6b0a1371355e21fd635763e1aae410fd (diff)
parent66b61eb67dccedaeca6cb1f7e5141ba459fbf839 (diff)
downloadnextcloud-server-e08768ee04635d017a3f2f87e7ac6b1859f733dc.tar.gz
nextcloud-server-e08768ee04635d017a3f2f87e7ac6b1859f733dc.zip
Merge pull request #6047 from nextcloud/fix-6017-select-indexed-columns
Use indexed column path_hash to find the parent
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Repair/NC13/RepairInvalidPaths.php4
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();
}