Flush any implicit transactions in RecentChangesUpdateJob
authorMarius Hoch <hoo@online.de>
Wed, 18 Feb 2015 08:44:05 +0000 (09:44 +0100)
committerMarius Hoch <hoo@online.de>
Wed, 18 Feb 2015 08:44:05 +0000 (09:44 +0100)
Bug: T89806
Change-Id: Ibd71966225de3dfb392002fc3fd181b2ff521b9d

includes/jobqueue/jobs/RecentChangesUpdateJob.php

index 236b4d4..b54ecfd 100644 (file)
@@ -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__ );