r50622 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50621‎ | r50622 | r50623 >
Date:10:16, 15 May 2009
Author:ialex
Status:ok
Tags:
Comment:
* Fix comment
* Removed "- 1" when incrementing $blockStart and $blockEnd so that LOG_SEARCH_BATCH_SIZE is respected
Modified paths:
  • /trunk/phase3/maintenance/populateLogSearch.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/populateLogSearch.inc
@@ -1,9 +1,6 @@
22 <?php
33 /**
4 - * Makes the required database updates for Special:ProtectedPages
5 - * to show all protected pages, even ones before the page restrictions
6 - * schema change. All remaining page_restriction column values are moved
7 - * to the new table.
 4+ * Makes the required database updates for log display in Special:RevisionDelete
85 *
96 * Run via update.php or directly through populateLogSearch.php
107 *
@@ -60,8 +57,8 @@
6158 }
6259 }
6360 }
64 - $blockStart += LOG_SEARCH_BATCH_SIZE - 1;
65 - $blockEnd += LOG_SEARCH_BATCH_SIZE - 1;
 61+ $blockStart += LOG_SEARCH_BATCH_SIZE;
 62+ $blockEnd += LOG_SEARCH_BATCH_SIZE;
6663 wfWaitForSlaves( 5 );
6764 }
6865 if( $db->insert(

Status & tagging log