Add wfWaitForSlaves() to HTMLCacheUpdateJob
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 24 Oct 2015 05:24:48 +0000 (22:24 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 24 Oct 2015 05:24:48 +0000 (22:24 -0700)
Change-Id: Iabf3d01f15b36bcb51e7fd8512404df2a3aedf35

includes/jobqueue/jobs/HTMLCacheUpdateJob.php

index ef9fec0..6b1a1e3 100644 (file)
@@ -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 ) ),