Index: trunk/phase3/includes/Block.php |
— | — | @@ -889,8 +889,13 @@ |
890 | 890 | * Purge expired blocks from the ipblocks table |
891 | 891 | */ |
892 | 892 | public static function purgeExpired() { |
893 | | - $dbw = wfGetDB( DB_MASTER ); |
| 893 | + $lb = wfGetLBFactory()->newMainLB(); |
| 894 | + $dbw = $lb->getConnection( DB_MASTER ); |
| 895 | + |
894 | 896 | $dbw->delete( 'ipblocks', array( 'ipb_expiry < ' . $dbw->addQuotes( $dbw->timestamp() ) ), __METHOD__ ); |
| 897 | + |
| 898 | + $lb->commitMasterChanges(); |
| 899 | + $lb->closeAll(); |
895 | 900 | } |
896 | 901 | |
897 | 902 | /** |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -235,8 +235,10 @@ |
236 | 236 | * (bug 28372) Fix bogus link to suppressed file versions in ForeignDBRepo |
237 | 237 | * (bug 27473) Fix regression: bold, italic no longer interfere with linktrail for ca, kaa |
238 | 238 | * (bug 28444) Fix regression: edit-on-doubleclick retains revision id again |
| 239 | +* (bug 28485) Block::purgeExpired Database returned error "1205: Lock wait timeout |
| 240 | + exceeded;" |
239 | 241 | |
240 | | -=== API changes in 1.18 === |
| 242 | + === API changes in 1.18 === |
241 | 243 | * (bug 26339) Throw warning when truncating an overlarge API result |
242 | 244 | * (bug 14869) Add API module for accessing QueryPage-based special pages |
243 | 245 | * (bug 14020) API for Special:Unwatchedpages |