From 3c804d861c8fd53eb375b1ead9918b280853dc67 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 26 Jun 2005 08:25:18 +0000 Subject: [PATCH] respect ALF_NO_LINK_LOCK --- includes/LinkCache.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 = ''; -- 2.20.1