From: Aaron Schulz Date: Wed, 17 Sep 2014 00:18:21 +0000 (-0700) Subject: Removed redundant begin/commit calls X-Git-Tag: 1.31.0-rc.0~13990 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=87337428f0354dea65e3b733599fe6633f727fc4;p=lhc%2Fweb%2Fwiklou.git Removed redundant begin/commit calls Change-Id: I33b496c5c57451eec24080a5b769020979fb51f0 --- 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 ); } ); } }