summaryrefslogtreecommitdiff
path: root/maintenance/storage/compressOld.inc
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/storage/compressOld.inc')
-rw-r--r--maintenance/storage/compressOld.inc10
1 files changed, 3 insertions, 7 deletions
diff --git a/maintenance/storage/compressOld.inc b/maintenance/storage/compressOld.inc
index 52b9c40b..fb8cc422 100644
--- a/maintenance/storage/compressOld.inc
+++ b/maintenance/storage/compressOld.inc
@@ -4,10 +4,6 @@
* @ingroup Maintenance ExternalStorage
*/
-/** */
-require_once( 'Revision.php' );
-require_once( 'ExternalStoreDB.php' );
-
/** @todo document */
function compressOldPages( $start = 0, $extdb = '' ) {
$fname = 'compressOldPages';
@@ -70,7 +66,7 @@ define( 'LS_INDIVIDUAL', 0 );
define( 'LS_CHUNKED', 1 );
/** @todo document */
-function compressWithConcat( $startId, $maxChunkSize, $maxChunkFactor, $factorThreshold, $beginDate,
+function compressWithConcat( $startId, $maxChunkSize, $beginDate,
$endDate, $extdb="", $maxPageId = false )
{
$fname = 'compressWithConcat';
@@ -198,7 +194,7 @@ function compressWithConcat( $startId, $maxChunkSize, $maxChunkFactor, $factorTh
$primaryOldid = $revs[$i]->rev_text_id;
# Get the text of each revision and add it to the object
- for ( $j = 0; $j < $thisChunkSize && $chunk->isHappy( $maxChunkFactor, $factorThreshold ); $j++ ) {
+ for ( $j = 0; $j < $thisChunkSize && $chunk->isHappy(); $j++ ) {
$oldid = $revs[$i + $j]->rev_text_id;
# Get text
@@ -229,7 +225,7 @@ function compressWithConcat( $startId, $maxChunkSize, $maxChunkFactor, $factorTh
$stub = false;
print 'x';
} else {
- $stub = $chunk->addItem( $text );
+ $stub = new HistoryBlobStub( $chunk->addItem( $text ) );
$stub->setLocation( $primaryOldid );
$stub->setReferrer( $oldid );
print '.';