r10660 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10659‎ | r10660 | r10661 >
Date:12:30, 20 August 2005
Author:midom
Status:old
Tags:
Comment:
do not block-compress current versions
Modified paths:
  • /trunk/phase3/maintenance/storage/compressOld.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/storage/compressOld.inc
@@ -115,6 +115,10 @@
116116 $fields = array( 'rev_id', 'rev_text_id' );
117117 $revLoadOptions = array();
118118 }
 119+
 120+ # Don't work with current revisions
 121+ $tables[] = 'page';
 122+ $conds[] = 'page_id=rev_page AND rev_id != page_latest';
119123
120124 $oldReadsSinceLastSlaveWait = 0; #check slave lag periodically
121125 $totalMatchingRevisions = 0;

Status & tagging log