From: Sam Reed Date: Mon, 11 Apr 2011 12:48:59 +0000 (+0000) Subject: Followup r85776, per Aaron, add documentation showing reason why explicit creation... X-Git-Tag: 1.31.0-rc.0~30941 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=89a136bb46909f20c49da487170f318efd1c59c1;p=lhc%2Fweb%2Fwiklou.git Followup r85776, per Aaron, add documentation showing reason why explicit creation of a new LB was added --- diff --git a/includes/Block.php b/includes/Block.php index 2ef8e5b4f5..bc4c552b8b 100644 --- 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 );