From: Aaron Schulz Date: Sat, 24 Oct 2015 05:24:48 +0000 (-0700) Subject: Add wfWaitForSlaves() to HTMLCacheUpdateJob X-Git-Tag: 1.31.0-rc.0~9271 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=5667ccc09442856305ad58c6475d57d265325f68;p=lhc%2Fweb%2Fwiklou.git Add wfWaitForSlaves() to HTMLCacheUpdateJob Change-Id: Iabf3d01f15b36bcb51e7fd8512404df2a3aedf35 --- diff --git a/includes/jobqueue/jobs/HTMLCacheUpdateJob.php b/includes/jobqueue/jobs/HTMLCacheUpdateJob.php index ef9fec04b9..6b1a1e3f4b 100644 --- a/includes/jobqueue/jobs/HTMLCacheUpdateJob.php +++ b/includes/jobqueue/jobs/HTMLCacheUpdateJob.php @@ -103,6 +103,7 @@ class HTMLCacheUpdateJob extends Job { // Check $wgUpdateRowsPerQuery for sanity; batch jobs are sized by that already. foreach ( array_chunk( $pageIds, $wgUpdateRowsPerQuery ) as $batch ) { $dbw->commit( __METHOD__, 'flush' ); + wfWaitForSlaves(); $dbw->update( 'page', array( 'page_touched' => $dbw->timestamp( $touchTimestamp ) ),