X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupUploadStash.php;h=95bbe3d3ffd8fc4a0f6c40af6fbcc9b9dc7bd7a2;hb=e8d13ad1a2b22801ccfce4891e3fea9cea8adc90;hp=cd7a8420f9c5daeb1907b8cf40c9aa84a363920c;hpb=cd69b253b13c66eb5f61c27200f22ee7eac4cde0;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index cd7a8420f9..95bbe3d3ff 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -47,7 +47,7 @@ class UploadStashCleanup extends Maintenance { $repo = RepoGroup::singleton()->getLocalRepo(); $tempRepo = $repo->getTempRepo(); - $dbr = $repo->getSlaveDB(); + $dbr = $repo->getReplicaDB(); // how far back should this look for files to delete? $cutoff = time() - $wgUploadStashMaxAge;