Followup r85776, per Aaron, add documentation showing reason why explicit creation...
authorSam Reed <reedy@users.mediawiki.org>
Mon, 11 Apr 2011 12:48:59 +0000 (12:48 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 11 Apr 2011 12:48:59 +0000 (12:48 +0000)
includes/Block.php

index 2ef8e5b..bc4c552 100644 (file)
@@ -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 );