From: Robin Appelman Date: Fri, 19 Jul 2024 17:30:53 +0000 (+0200) Subject: fix: run mimetype repair query across all shards X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2eaeeeeafe5fd9377dbaa079a89b2d56ff0bb245;p=nextcloud-server.git fix: run mimetype repair query across all shards Signed-off-by: Robin Appelman --- 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))