Index: trunk/extensions/CheckUser/install.php |
— | — | @@ -45,6 +45,8 @@ |
46 | 46 | $end = $db->selectField( 'recentchanges', 'MAX(rc_id)', false, __FUNCTION__ ); |
47 | 47 | $blockStart = $start; |
48 | 48 | $blockEnd = $start + BATCH_SIZE - 1; |
| 49 | + |
| 50 | + $db->begin(); |
49 | 51 | while ( $blockStart <= $end ) { |
50 | 52 | $cond = "rc_id BETWEEN $blockStart AND $blockEnd $cutoffCond"; |
51 | 53 | $res = $db->select( 'recentchanges', '*', $cond, __FUNCTION__ ); |