dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80d2ef4
)
replace wfGetDB (discouraged for use) with Maintenance::getDB in dumps scripts
author
Ariel T. Glenn
<ariel@wikimedia.org>
Thu, 8 Aug 2019 13:11:36 +0000
(16:11 +0300)
committer
Ariel T. Glenn
<ariel@wikimedia.org>
Wed, 21 Aug 2019 10:01:47 +0000
(13:01 +0300)
Bug: T228772
Change-Id: I0d9448b2565481f61d927b2d58f44bddbf358ed8
maintenance/includes/BackupDumper.php
patch
|
blob
|
history
diff --git
a/maintenance/includes/BackupDumper.php
b/maintenance/includes/BackupDumper.php
index
08eade9
..
358dc21
100644
(file)
--- a/
maintenance/includes/BackupDumper.php
+++ b/
maintenance/includes/BackupDumper.php
@@
-316,7
+316,7
@@
abstract class BackupDumper extends Maintenance {
$dbr = $this->forcedDb;
if ( $this->forcedDb === null ) {
- $dbr =
wfG
etDB( DB_REPLICA );
+ $dbr =
$this->g
etDB( DB_REPLICA );
}
$this->maxCount = $dbr->selectField( $table, "MAX($field)", '', __METHOD__ );
$this->startTime = microtime( true );