From c39aeb62f7e8dfb6ba6467beb2d9d6f97fd84959 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 5 Feb 2007 10:49:51 +0000 Subject: Aktualisierung auf MediaWiki 1.9.2 --- maintenance/storage/compressOld.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'maintenance') 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]), -- cgit v1.2.2