Index: trunk/extensions/Renameuser/RenameUserJob.php |
— | — | @@ -1,8 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
5 | | - * Custom job to perform updates on less important tables |
6 | | - * in busier environments |
| 5 | + * Custom job to perform updates on tables in busier environments |
7 | 6 | */ |
8 | 7 | class RenameUserJob extends Job { |
9 | 8 | |
Index: trunk/extensions/Renameuser/SpecialRenameuser_body.php |
— | — | @@ -288,7 +288,8 @@ |
289 | 289 | // 1.5 schema |
290 | 290 | $this->tables = array( |
291 | 291 | 'image' => 'img_user_text', |
292 | | - 'oldimage' => 'oi_user_text' |
| 292 | + 'oldimage' => 'oi_user_text', |
| 293 | + 'archive' => 'ar_user_text' |
293 | 294 | ); |
294 | 295 | $this->tablesJob = array(); |
295 | 296 | // See if this is for large tables on large, busy, wikis |
— | — | @@ -300,11 +301,6 @@ |
301 | 302 | $this->tables['recentchanges'] = 'rc_user_text'; |
302 | 303 | } |
303 | 304 | |
304 | | - global $wgRenameUserQuick; |
305 | | - // As of 1.10, usernames are not indexed here; too slow for large wikis |
306 | | - if( !$wgRenameUserQuick ) |
307 | | - $this->tables['archive'] = 'ar_user_text'; |
308 | | - |
309 | 305 | } |
310 | 306 | |
311 | 307 | /** |
— | — | @@ -317,7 +313,7 @@ |
318 | 314 | |
319 | 315 | $dbw =& wfGetDB( DB_MASTER ); |
320 | 316 | // Rename and touch the user before re-attributing edits, |
321 | | - // this avoids users still being login in and making new edits while |
| 317 | + // this avoids users still being logged in and making new edits while |
322 | 318 | // being renamed, which leaves edits at the old name. |
323 | 319 | $dbw->update( 'user', |
324 | 320 | array( 'user_name' => $this->new, 'user_touched' => $dbw->timestamp() ), |
Index: trunk/extensions/Renameuser/SpecialRenameuser.php |
— | — | @@ -44,13 +44,6 @@ |
45 | 45 | $wgSpecialPages['Renameuser'] = 'SpecialRenameuser'; |
46 | 46 | $wgJobClasses['renameUser'] = 'RenameUserJob'; |
47 | 47 | |
48 | | -/** |
49 | | - * If this is set to true, then the archive table (deleted revisions) will |
50 | | - * not be updated. Defaults to the value of $wgMiserMode, since if that's on, |
51 | | - * then it's probably desirable to have this switched on too. |
52 | | - */ |
53 | | -$wgRenameUserQuick = $wgMiserMode; |
54 | | - |
55 | 48 | function wfSpecialRenameuser() { |
56 | 49 | # Add messages |
57 | 50 | global $wgMessageCache, $wgRenameuserMessages; |