From: Marius Hoch Date: Wed, 18 Feb 2015 08:44:05 +0000 (+0100) Subject: Flush any implicit transactions in RecentChangesUpdateJob X-Git-Tag: 1.31.0-rc.0~12380 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=2c788bddc08b0211982407bdc47b137b60111871;p=lhc%2Fweb%2Fwiklou.git Flush any implicit transactions in RecentChangesUpdateJob Bug: T89806 Change-Id: Ibd71966225de3dfb392002fc3fd181b2ff521b9d --- diff --git a/includes/jobqueue/jobs/RecentChangesUpdateJob.php b/includes/jobqueue/jobs/RecentChangesUpdateJob.php index 236b4d4b76..b54ecfdc16 100644 --- a/includes/jobqueue/jobs/RecentChangesUpdateJob.php +++ b/includes/jobqueue/jobs/RecentChangesUpdateJob.php @@ -76,6 +76,8 @@ class RecentChangesUpdateJob extends Job { if ( $rcIds ) { $dbw->delete( 'recentchanges', array( 'rc_id' => $rcIds ), __METHOD__ ); } + // No need for this to be in a transaction. + $dbw->commit( __METHOD__, 'flush' ); } while ( $rcIds ); $dbw->unlock( $lockKey, __METHOD__ );