Added new message 'sp-deletedcontributions-contribs' for the link to Special:Contribu...
[lhc/web/wiklou.git] / maintenance / rebuildtextindex.php
index 6fed4aa..b19f78b 100644 (file)
@@ -3,11 +3,12 @@
  * Rebuild search index table from scratch.  This takes several
  * hours, depending on the database size and server configuration.
  *
- * This is only for MySQL (see bug 9905). For postgres we can probably
- * use SearchPostgres::update($pageid);
+ * This is only for MySQL (see bug 9905).
+ * Postgres is trigger-based and should never need rebuilding.
  *
+ * @file
  * @todo document
- * @addtogroup Maintenance
+ * @ingroup Maintenance
  */
 
 /** */
@@ -17,7 +18,7 @@ require_once( "rebuildtextindex.inc" );
 $database = wfGetDB( DB_MASTER );
 if( !$database instanceof DatabaseMysql ) {
        print "This script is only for MySQL.\n";
-       exit();
+       exit(1);
 }
 
 $wgTitle = Title::newFromText( "Rebuild text index script" );
@@ -27,6 +28,6 @@ rebuildTextIndex( $database );
 createTextIndex( $database );
 
 print "Done.\n";
-exit();
+exit(0);
+
 
-?>