X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fstorage%2FtestCompression.php;h=028f11cc6d9bcbf82e3fd4d1922e810071a42231;hp=2692a07a846e340a3b5540d3e3611c56fe0a9784;hb=5120937028f768749d058aa91dde82a96de0af1c;hpb=7f91193ef37d534949950c980416b5a921cd5d79 diff --git a/maintenance/storage/testCompression.php b/maintenance/storage/testCompression.php index 2692a07a84..028f11cc6d 100644 --- a/maintenance/storage/testCompression.php +++ b/maintenance/storage/testCompression.php @@ -47,17 +47,19 @@ if ( isset( $options['limit'] ) ) { } $type = isset( $options['type'] ) ? $options['type'] : 'ConcatenatedGzipHistoryBlob'; -$dbr = $this->getDB( DB_SLAVE ); +$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;