dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e7f77a
)
respect ALF_NO_LINK_LOCK
author
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 26 Jun 2005 08:25:18 +0000
(08:25 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 26 Jun 2005 08:25:18 +0000
(08:25 +0000)
includes/LinkCache.php
patch
|
blob
|
history
diff --git
a/includes/LinkCache.php
b/includes/LinkCache.php
index
41f916b
..
dae7533
100644
(file)
--- 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 = '';