diff options
Diffstat (limited to 'maintenance/storage')
-rw-r--r-- | maintenance/storage/compressOld.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maintenance/storage/compressOld.inc b/maintenance/storage/compressOld.inc index 3c426841..d38bb741 100644 --- a/maintenance/storage/compressOld.inc +++ b/maintenance/storage/compressOld.inc @@ -284,8 +284,8 @@ function compressWithConcat( $startId, $maxChunkSize, $maxChunkFactor, $factorTh # Store the stub objects for ( $j = 1; $j < $thisChunkSize; $j++ ) { - # Skip if not compressing - if ( $stubs[$j] !== false ) { + # Skip if not compressing and don't overwrite the first revision + if ( $stubs[$j] !== false && $revs[$i + $j]->rev_text_id != $primaryOldid ) { $dbw->update( 'text', array( /* SET */ 'old_text' => serialize($stubs[$j]), |