From 89a136bb46909f20c49da487170f318efd1c59c1 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Mon, 11 Apr 2011 12:48:59 +0000 Subject: [PATCH] Followup r85776, per Aaron, add documentation showing reason why explicit creation of a new LB was added --- includes/Block.php | 2 ++ 1 file changed, 2 insertions(+) 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 ); -- 2.20.1