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:
8bd96ff
)
Followup r85776, per Aaron, add documentation showing reason why explicit creation...
author
Sam Reed
<reedy@users.mediawiki.org>
Mon, 11 Apr 2011 12:48:59 +0000
(12:48 +0000)
committer
Sam Reed
<reedy@users.mediawiki.org>
Mon, 11 Apr 2011 12:48:59 +0000
(12:48 +0000)
includes/Block.php
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
2ef8e5b
..
bc4c552
100644
(file)
--- a/
includes/Block.php
+++ b/
includes/Block.php
@@
-889,6
+889,8
@@
class Block {
* Purge expired blocks from the ipblocks table
*/
public static function purgeExpired() {
+ // https://bugzilla.wikimedia.org/show_bug.cgi?id=28485
+ // Create and use a new loadBalancer object, to prevent "1205: Lock wait timeout exceeded;"
$lb = wfGetLBFactory()->newMainLB();
$dbw = $lb->getConnection( DB_MASTER );