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 "API: Fix ApiMainTest::testExceptionErrors and use $wgShowDBErrorBacktrace"
[lhc/web/wiklou.git]
/
maintenance
/
storage
/
fixBug20757.php
diff --git
a/maintenance/storage/fixBug20757.php
b/maintenance/storage/fixBug20757.php
index
94335cf
..
b444f31
100644
(file)
--- a/
maintenance/storage/fixBug20757.php
+++ b/
maintenance/storage/fixBug20757.php
@@
-42,7
+42,7
@@
class FixBug20757 extends Maintenance {
}
function execute() {
}
function execute() {
- $dbr = $this->getDB( DB_
SLAVE
);
+ $dbr = $this->getDB( DB_
REPLICA
);
$dbw = $this->getDB( DB_MASTER );
$dryRun = $this->getOption( 'dry-run' );
$dbw = $this->getDB( DB_MASTER );
$dryRun = $this->getOption( 'dry-run' );
@@
-281,7
+281,7
@@
class FixBug20757 extends Maintenance {
unset( $this->mapCache[$key] );
}
unset( $this->mapCache[$key] );
}
- $dbr = $this->getDB( DB_
SLAVE
);
+ $dbr = $this->getDB( DB_
REPLICA
);
$map = [];
$res = $dbr->select( 'revision',
[ 'rev_id', 'rev_text_id' ],
$map = [];
$res = $dbr->select( 'revision',
[ 'rev_id', 'rev_text_id' ],