X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fstorage%2FtestCompression.php;h=c3ed4fce0c104a7e83ca53bedd958c9e2b98fcaa;hp=90d8d03110708b155e5e623c5a1b6ac94b5240cd;hb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;hpb=c8d361a38027ef5d808225b8a83f15417248aa67 diff --git a/maintenance/storage/testCompression.php b/maintenance/storage/testCompression.php index 90d8d03110..c3ed4fce0c 100644 --- a/maintenance/storage/testCompression.php +++ b/maintenance/storage/testCompression.php @@ -45,19 +45,21 @@ if ( isset( $options['limit'] ) ) { $limit = 1000; $untilHappy = true; } -$type = isset( $options['type'] ) ? $options['type'] : 'ConcatenatedGzipHistoryBlob'; +$type = isset( $options['type'] ) ? $options['type'] : ConcatenatedGzipHistoryBlob::class; $dbr = $this->getDB( DB_REPLICA ); +$revQuery = Revision::getQueryInfo( [ 'page', 'text' ] ); $res = $dbr->select( - [ 'page', 'revision', 'text' ], - '*', + $revQuery['tables'], + $revQuery['fields'], [ 'page_namespace' => $title->getNamespace(), 'page_title' => $title->getDBkey(), - 'page_id=rev_page', 'rev_timestamp > ' . $dbr->addQuotes( $dbr->timestamp( $start ) ), - 'rev_text_id=old_id' - ], __FILE__, [ 'LIMIT' => $limit ] + ], + __FILE__, + [ 'LIMIT' => $limit ], + $revQuery['joins'] ); $blob = new $type;