Don't kill whole update process if no log rows to update (fixes r50609)
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 6 Jun 2009 00:39:31 +0000 (00:39 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 6 Jun 2009 00:39:31 +0000 (00:39 +0000)
maintenance/populateLogSearch.inc

index 0cfa387..d678191 100644 (file)
@@ -13,7 +13,8 @@ define( 'LOG_SEARCH_BATCH_SIZE', 100 );
 function migrate_log_params( $db ) {
        $start = $db->selectField( 'logging', 'MIN(log_id)', false, __FUNCTION__ );
        if( !$start ) {
-               die("Nothing to do.\n");
+               echo "Nothing to do.\n";
+               return true;
        }
        $end = $db->selectField( 'logging', 'MAX(log_id)', false, __FUNCTION__ );