From 3cb34a96adf7864677eb8aa8d2172554b48a537d Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 24 Jun 2014 18:58:49 -0700 Subject: [PATCH] Removed redundant begin/commit calls * onTransactionIdle() callbacks already run in auto-commit mode. Change-Id: I1eab5953080fe28fe58d7a75f88612c591db6e9a --- includes/UserMailer.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/UserMailer.php b/includes/UserMailer.php index d3e8cb8f72..d73f6b403a 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -544,7 +544,6 @@ class EmailNotification { $fname = __METHOD__; $dbw->onTransactionIdle( function() use ( $dbw, $timestamp, $watchers, $title, $fname ) { - $dbw->begin( $fname ); $dbw->update( 'watchlist', array( /* SET */ 'wl_notificationtimestamp' => $dbw->timestamp( $timestamp ) @@ -554,7 +553,6 @@ class EmailNotification { 'wl_title' => $title->getDBkey(), ), $fname ); - $dbw->commit( $fname ); } ); } -- 2.20.1