* Fix comment
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 15 May 2009 10:16:13 +0000 (10:16 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 15 May 2009 10:16:13 +0000 (10:16 +0000)
* Removed "- 1" when incrementing $blockStart and $blockEnd so that LOG_SEARCH_BATCH_SIZE is respected

maintenance/populateLogSearch.inc

index 51dac2e..0cfa387 100644 (file)
@@ -1,9 +1,6 @@
 <?php
 /**
- * Makes the required database updates for Special:ProtectedPages
- * to show all protected pages, even ones before the page restrictions
- * schema change. All remaining page_restriction column values are moved
- * to the new table.
+ * Makes the required database updates for log display in Special:RevisionDelete
  *
  * Run via update.php or directly through populateLogSearch.php
  *
@@ -60,8 +57,8 @@ function migrate_log_params( $db ) {
                                }
                        }
                }
-               $blockStart += LOG_SEARCH_BATCH_SIZE - 1;
-               $blockEnd += LOG_SEARCH_BATCH_SIZE - 1;
+               $blockStart += LOG_SEARCH_BATCH_SIZE;
+               $blockEnd += LOG_SEARCH_BATCH_SIZE;
                wfWaitForSlaves( 5 );
        }
        if( $db->insert(