diff options
author | Robin Appelman <robin@icewind.nl> | 2024-07-19 19:30:53 +0200 |
---|---|---|
committer | Louis Chemineau <louis@chmn.me> | 2024-08-28 10:21:19 +0200 |
commit | 2eaeeeeafe5fd9377dbaa079a89b2d56ff0bb245 (patch) | |
tree | 4b208a7404c9307e94a488e2206f871e21927f32 /lib | |
parent | 390f6a78b48e4c071f1b18d2fc230aa24eb3f3bb (diff) | |
download | nextcloud-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.php | 1 |
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)) |