From 87337428f0354dea65e3b733599fe6633f727fc4 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 16 Sep 2014 17:18:21 -0700 Subject: [PATCH] Removed redundant begin/commit calls Change-Id: I33b496c5c57451eec24080a5b769020979fb51f0 --- includes/EditPage.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 337062226b..a9925ffeca 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1944,9 +1944,7 @@ class EditPage { // Do this in its own transaction to reduce contention... $dbw = wfGetDB( DB_MASTER ); $dbw->onTransactionIdle( function () use ( $dbw, $title, $watch, $wgUser, $fname ) { - $dbw->begin( $fname ); WatchAction::doWatchOrUnwatch( $watch, $title, $wgUser ); - $dbw->commit( $fname ); } ); } } -- 2.20.1