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
Merge "Rework ApiUploadTest"
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
resolveStubs.php
diff --git
a/maintenance/storage/resolveStubs.php
b/maintenance/storage/resolveStubs.php
index
33a9f96
..
f9ec398
100644
(file)
--- a/
maintenance/storage/resolveStubs.php
+++ b/
maintenance/storage/resolveStubs.php
@@
-37,8
+37,8
@@
if ( !defined( 'MEDIAWIKI' ) ) {
function resolveStubs() {
$fname = 'resolveStubs';
function resolveStubs() {
$fname = 'resolveStubs';
- $dbr = wfGetDB( DB_
SLAVE
);
- $maxID = $dbr->selectField( 'text', 'MAX(old_id)',
false
, $fname );
+ $dbr = wfGetDB( DB_
REPLICA
);
+ $maxID = $dbr->selectField( 'text', 'MAX(old_id)',
''
, $fname );
$blockSize = 10000;
$numBlocks = intval( $maxID / $blockSize ) + 1;
$blockSize = 10000;
$numBlocks = intval( $maxID / $blockSize ) + 1;
@@
-73,7
+73,7
@@
function resolveStub( $id, $stubText, $flags ) {
$stub = unserialize( $stubText );
$flags = explode( ',', $flags );
$stub = unserialize( $stubText );
$flags = explode( ',', $flags );
- $dbr = wfGetDB( DB_
SLAVE
);
+ $dbr = wfGetDB( DB_
REPLICA
);
$dbw = wfGetDB( DB_MASTER );
if ( strtolower( get_class( $stub ) ) !== 'historyblobstub' ) {
$dbw = wfGetDB( DB_MASTER );
if ( strtolower( get_class( $stub ) ) !== 'historyblobstub' ) {