From: Tim Starling Date: Sun, 26 Jun 2005 08:25:18 +0000 (+0000) Subject: respect ALF_NO_LINK_LOCK X-Git-Tag: 1.5.0beta1~2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=3c804d861c8fd53eb375b1ead9918b280853dc67;p=lhc%2Fweb%2Fwiklou.git respect ALF_NO_LINK_LOCK --- diff --git a/includes/LinkCache.php b/includes/LinkCache.php index 41f916bb2f..dae7533ccf 100644 --- a/includes/LinkCache.php +++ b/includes/LinkCache.php @@ -181,6 +181,7 @@ class LinkCache { * @param Title $fromtitle */ function preFill( &$fromtitle ) { + global $wgAntiLockFlags; $fname = 'LinkCache::preFill'; wfProfileIn( $fname ); @@ -196,7 +197,11 @@ class LinkCache { if ( $this->mForUpdate ) { $db =& wfGetDB( DB_MASTER ); - $options = 'FOR UPDATE'; + if ( !( $wgAntiLockFlags & ALF_NO_LINK_LOCK ) ) { + $options = 'FOR UPDATE'; + } else { + $options = ''; + } } else { $db =& wfGetDB( DB_SLAVE ); $options = '';