aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-07-19 19:30:53 +0200
committerLouis Chemineau <louis@chmn.me>2024-08-28 10:21:19 +0200
commit2eaeeeeafe5fd9377dbaa079a89b2d56ff0bb245 (patch)
tree4b208a7404c9307e94a488e2206f871e21927f32 /lib
parent390f6a78b48e4c071f1b18d2fc230aa24eb3f3bb (diff)
downloadnextcloud-server-2eaeeeeafe5fd9377dbaa079a89b2d56ff0bb245.tar.gz
nextcloud-server-2eaeeeeafe5fd9377dbaa079a89b2d56ff0bb245.zip
fix: run mimetype repair query across all shards
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Repair/RepairMimeTypes.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Repair/RepairMimeTypes.php b/lib/private/Repair/RepairMimeTypes.php
index 5e81f8d801b..6932299dc4a 100644
--- a/lib/private/Repair/RepairMimeTypes.php
+++ b/lib/private/Repair/RepairMimeTypes.php
@@ -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))