Skip to content

Commit 64cdaba

Browse files
committed
fix(Preview): Fix sharding of the PreviewMigrationService
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent 7e79fc0 commit 64cdaba

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/private/Preview/PreviewMigrationService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ private function folderHasChildren(int $storageId, string $path): bool {
224224
$qb->select('fileid')
225225
->from('filecache')
226226
->where($qb->expr()->eq('parent', $qb->createNamedParameter((int)$folderId)))
227+
->andWhere($qb->expr()->eq('storage', $qb->createNamedParameter($storageId)))
227228
->setMaxResults(1);
228229
$cursor = $qb->executeQuery();
229230
$hasChild = $cursor->fetchOne() !== false;

0 commit comments

Comments
 (0)