From: aude Date: Mon, 26 Oct 2015 21:51:01 +0000 (+0100) Subject: Remove begin/commit transaction calls in refreshLinks.php X-Git-Tag: 1.31.0-rc.0~9227^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=6b82cb0ddf22395dd01a15df51b12bfe165dd76c;p=lhc%2Fweb%2Fwiklou.git Remove begin/commit transaction calls in refreshLinks.php these sometimes lead to issues with database deadlock loops and probably are not needed here. Bug: T75456 Change-Id: Iad03f6076d8e319ff02cb26259ec9705105e92a7 --- diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php index 06e1449e15..ed168053d5 100644 --- a/maintenance/refreshLinks.php +++ b/maintenance/refreshLinks.php @@ -242,13 +242,8 @@ class RefreshLinks extends Maintenance { return; } - $dbw = wfGetDB( DB_MASTER ); - $dbw->begin( __METHOD__ ); - $updates = $content->getSecondaryDataUpdates( $page->getTitle() ); DataUpdate::runUpdates( $updates ); - - $dbw->commit( __METHOD__ ); } /**