From 2c788bddc08b0211982407bdc47b137b60111871 Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Wed, 18 Feb 2015 09:44:05 +0100 Subject: [PATCH] Flush any implicit transactions in RecentChangesUpdateJob Bug: T89806 Change-Id: Ibd71966225de3dfb392002fc3fd181b2ff521b9d --- includes/jobqueue/jobs/RecentChangesUpdateJob.php | 2 ++ 1 file changed, 2 insertions(+) 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__ ); -- 2.20.1