dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove jetbrains/phpstorm-stubs from composer dev dependancies
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
testCompression.php
diff --git
a/maintenance/storage/testCompression.php
b/maintenance/storage/testCompression.php
index
deb2ca6
..
c3ed4fc
100644
(file)
--- a/
maintenance/storage/testCompression.php
+++ b/
maintenance/storage/testCompression.php
@@
-45,23
+45,21
@@
if ( isset( $options['limit'] ) ) {
$limit = 1000;
$untilHappy = true;
}
$limit = 1000;
$untilHappy = true;
}
-$type = isset( $options['type'] ) ? $options['type'] :
'ConcatenatedGzipHistoryBlob'
;
+$type = isset( $options['type'] ) ? $options['type'] :
ConcatenatedGzipHistoryBlob::class
;
$dbr = $this->getDB( DB_REPLICA );
$dbr = $this->getDB( DB_REPLICA );
+$revQuery = Revision::getQueryInfo( [ 'page', 'text' ] );
$res = $dbr->select(
$res = $dbr->select(
- [ 'page', 'revision', 'text' ],
- array_merge(
- Revision::selectFields(),
- Revision::selectPageFields(),
- Revision::selectTextFields()
- ),
+ $revQuery['tables'],
+ $revQuery['fields'],
[
'page_namespace' => $title->getNamespace(),
'page_title' => $title->getDBkey(),
[
'page_namespace' => $title->getNamespace(),
'page_title' => $title->getDBkey(),
- 'page_id=rev_page',
'rev_timestamp > ' . $dbr->addQuotes( $dbr->timestamp( $start ) ),
'rev_timestamp > ' . $dbr->addQuotes( $dbr->timestamp( $start ) ),
- 'rev_text_id=old_id'
- ], __FILE__, [ 'LIMIT' => $limit ]
+ ],
+ __FILE__,
+ [ 'LIMIT' => $limit ],
+ $revQuery['joins']
);
$blob = new $type;
);
$blob = new $type;