]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: run mimetype repair query across all shards
authorRobin Appelman <robin@icewind.nl>
Fri, 19 Jul 2024 17:30:53 +0000 (19:30 +0200)
committerLouis Chemineau <louis@chmn.me>
Wed, 28 Aug 2024 08:21:19 +0000 (10:21 +0200)
Signed-off-by: Robin Appelman <robin@icewind.nl>
lib/private/Repair/RepairMimeTypes.php

index 5e81f8d801b37f407a7029670c62779c07e05aff..6932299dc4af7e594c0882f0220c9867d2692a43 100644 (file)
@@ -58,6 +58,7 @@ class RepairMimeTypes implements IRepairStep {
 
                $update = $this->connection->getQueryBuilder();
                $update->update('filecache')
+                       ->runAcrossAllShards()
                        ->set('mimetype', $update->createParameter('mimetype'))
                        ->where($update->expr()->neq('mimetype', $update->createParameter('mimetype'), IQueryBuilder::PARAM_INT))
                        ->andWhere($update->expr()->neq('mimetype', $update->createParameter('folder'), IQueryBuilder::PARAM_INT))