r37845 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37844‎ | r37845 | r37846 >
Date:12:15, 19 July 2008
Author:hashar
Status:old
Tags:
Comment:
Fix 12384 : comment on maintenance/*php files
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)
  • /trunk/phase3/maintenance/checkUsernames.php (modified) (history)
  • /trunk/phase3/maintenance/clear_stats.php (modified) (history)
  • /trunk/phase3/maintenance/deleteImageMemcached.php (modified) (history)
  • /trunk/phase3/maintenance/deleteRevision.php (modified) (history)
  • /trunk/phase3/maintenance/getSlaveServer.php (modified) (history)
  • /trunk/phase3/maintenance/mctest.php (modified) (history)
  • /trunk/phase3/maintenance/ourusers.php (modified) (history)
  • /trunk/phase3/maintenance/rebuildmessages.php (modified) (history)
  • /trunk/phase3/maintenance/runJobs.php (modified) (history)
  • /trunk/phase3/maintenance/showJobs.php (modified) (history)
  • /trunk/phase3/maintenance/undelete.php (modified) (history)
  • /trunk/phase3/maintenance/update.php (modified) (history)
  • /trunk/phase3/maintenance/waitForSlave.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/mctest.php
@@ -1,5 +1,8 @@
22 <?php
33 /**
 4+ * This script make several set, incr and get requests on every
 5+ * memcached server and show a report.
 6+ *
47 * $Id$
58 * @file
69 * @ingroup Maintenance
Index: trunk/phase3/maintenance/update.php
@@ -3,6 +3,8 @@
44 /**
55 * Run all updaters.
66 *
 7+ * This is used when the database schema is modified and we need to apply patches.
 8+ *
79 * @file
810 * @todo document
911 * @ingroup Maintenance
Index: trunk/phase3/maintenance/undelete.php
@@ -1,6 +1,6 @@
22 <?php
33 /**
4 - * Undelete a page
 4+ * Undelete a page by fetching it from the archive table
55 *
66 * @file
77 * @ingroup Maintenance
Index: trunk/phase3/maintenance/getSlaveServer.php
@@ -1,5 +1,7 @@
22 <?php
33 /**
 4+ * This script report the hostname of a slave server.
 5+ *
46 * @file
57 * @ingroup Maintenance
68 */
Index: trunk/phase3/maintenance/runJobs.php
@@ -1,5 +1,11 @@
22 <?php
33 /**
 4+ * This script starts pending jobs.
 5+ *
 6+ * Usage:
 7+ * --maxjobs <num> (default 10000)
 8+ * --type <job_cmd>
 9+ *
410 * @file
511 * @ingroup Maintenance
612 */
Index: trunk/phase3/maintenance/ourusers.php
@@ -1,5 +1,11 @@
22 <?php
33 /**
 4+ * Wikimedia specific
 5+ *
 6+ * This script generates SQL used to update MySQL users on a hardcoded
 7+ * list of hosts. It takes care of setting the wikiuser for every
 8+ * database as well as setting up wikiadmin.
 9+ *
410 * @todo document
511 * @file
612 * @ingroup Maintenance
Index: trunk/phase3/maintenance/clear_stats.php
@@ -1,5 +1,8 @@
22 <?php
33 /**
 4+ * This script remove all statistics tracking from memcached
 5+ * for ALL wiki !
 6+ *
47 * @file
58 * @ingroup Maintenance
69 */
Index: trunk/phase3/maintenance/deleteImageMemcached.php
@@ -1,6 +1,10 @@
22 <?php
3 -// php deleteImageMemcached.php --until "2005-09-05 00:00:00" --sleep 0 --report 10
43 /**
 4+ * This script delete image informations from memcached.
 5+ *
 6+ * Usage example:
 7+ * php deleteImageMemcached.php --until "2005-09-05 00:00:00" --sleep 0 --report 10
 8+ *
59 * @file
610 * @ingroup Maintenance
711 */
Index: trunk/phase3/maintenance/checkUsernames.php
@@ -1,5 +1,8 @@
22 <?php
33 /**
 4+ * This script verify that database usernames are actually valid.
 5+ * An existing usernames can become invalid if User::isValidUserName()
 6+ * is altered or if we change the $wgMaxNameChars
47 * @file
58 * @ingroup Maintenance
69 */
Index: trunk/phase3/maintenance/deleteRevision.php
@@ -1,5 +1,8 @@
22 <?php
33 /**
 4+ * Delete a given list of revision.
 5+ * The revision is in fact moved to the archive table.
 6+ *
47 * @file
58 * @ingroup Maintenance
69 */
Index: trunk/phase3/maintenance/showJobs.php
@@ -2,6 +2,8 @@
33 /**
44 * Based on runJobs.php
55 *
 6+ * Report number of jobs currently waiting in master database.
 7+ *
68 * @file
79 * @ingroup Maintenance
810 * @author Tim Starling
Index: trunk/phase3/maintenance/waitForSlave.php
@@ -1,5 +1,6 @@
22 <?php
33 /**
 4+ * @see wfWaitForSlaves()
45 * @file
56 * @ingroup Maintenance
67 */
Index: trunk/phase3/maintenance/rebuildmessages.php
@@ -1,5 +1,6 @@
22 <?php
33 /**
 4+ * This script purge languages messages from memcached
45 * @file
56 * @ingroup Maintenance
67 */
@@ -18,4 +19,4 @@
1920 if( $wgEnableSidebarCache )
2021 $messageMemc->delete( "{$db}:sidebar" );
2122 echo "Deleted\n";
22 -}
\ No newline at end of file
 23+}
Index: trunk/phase3/includes/DefaultSettings.php
@@ -923,9 +923,11 @@
924924
925925
926926 $wgShowIPinHeader = true; # For non-logged in users
927 -$wgMaxNameChars = 255; # Maximum number of bytes in username
928927 $wgMaxSigChars = 255; # Maximum number of Unicode characters in signature
929928 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
 929+# Maximum number of bytes in username. You want to run the maintenance
 930+# script ./maintenancecheckUsernames.php once you have changed this value
 931+$wgMaxNameChars = 255;
930932
931933 $wgMaxPPNodeCount = 1000000; # A complexity limit on template expansion
932934
Index: trunk/phase3/RELEASE-NOTES
@@ -440,6 +440,7 @@
441441 * (bug 14845) Bug in prefs javascript: Calling an array item without checking
442442 its existance.
443443 * Accesskeys for minor edit/watch checkboxes on edit now work in Firefox 3
 444+* (bug 12384) Comments in maintenance/*php
444445
445446 === API changes in 1.13 ===
446447

Status & tagging log