From 0c86bdec1eb5c9e6e4e2c5d5fad1cb00025307ed Mon Sep 17 00:00:00 2001 From: "Ariel T. Glenn" Date: Thu, 8 Aug 2019 16:11:36 +0300 Subject: [PATCH] replace wfGetDB (discouraged for use) with Maintenance::getDB in dumps scripts Bug: T228772 Change-Id: I0d9448b2565481f61d927b2d58f44bddbf358ed8 --- maintenance/includes/BackupDumper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/includes/BackupDumper.php b/maintenance/includes/BackupDumper.php index 08eade934f..358dc21e13 100644 --- 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 = wfGetDB( DB_REPLICA ); + $dbr = $this->getDB( DB_REPLICA ); } $this->maxCount = $dbr->selectField( $table, "MAX($field)", '', __METHOD__ ); $this->startTime = microtime( true ); -- 2.20.1