<?php
/**
- * @package MediaWiki
- * @subpackage Maintenance
+ * @file
+ * @ingroup Maintenance
*/
/** */
$wgQuiet = $quiet;
$wgDisableSearchUpdate = false;
- $dbw =& wfGetDB( DB_MASTER );
+ $dbw = wfGetDB( DB_MASTER );
$recentchanges = $dbw->tableName( 'recentchanges' );
output( "Updating searchindex between $start and $end\n" );
# Unlock searchindex
if ( $maxLockTime ) {
+ output( " --- Unlocking --" );
unlockSearchindex( $dbw );
+ output( "\n" );
}
output( "Done\n" );
}
$items[] = $db->tableName( $table ) . ' READ';
}
$sql = "LOCK TABLES " . implode( ',', $items );
- $db->query( $sql );
+ $db->query( $sql, 'updateSearchIndex.inc ' . __METHOD__ );
}
function unlockSearchindex( &$db ) {
- $db->query( "UNLOCK TABLES" );
+ $db->query( "UNLOCK TABLES", 'updateSearchIndex.inc ' . __METHOD__ );
}
# Unlock and lock again
print $text;
}
}
-
-?>