X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpTextPass.php;h=581f0d7b4d37cb8bb49833853398128efc5f8d35;hb=1f726368684c1eff6f1f0c4ba16cabd9beac19a8;hp=d0bda4ed3a4340f3a1a3b480368c05cd1985f803;hpb=4a975b8099ee11b15421d03be02206935a8422f1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index d0bda4ed3a..581f0d7b4d 100644 --- a/maintenance/dumpTextPass.php +++ b/maintenance/dumpTextPass.php @@ -27,6 +27,8 @@ require_once __DIR__ . '/backup.inc'; require_once __DIR__ . '/../includes/export/WikiExporter.php'; +use Wikimedia\Rdbms\IMaintainableDatabase; + /** * @ingroup Maintenance */ @@ -86,7 +88,7 @@ class TextPassDumper extends BackupDumper { protected $checkpointFiles = []; /** - * @var DatabaseBase + * @var IMaintainableDatabase */ protected $db; @@ -212,7 +214,6 @@ TEXT // We do /not/ retry upon failure, but delegate to encapsulating logic, to avoid // individually retrying at different layers of code. - // 1. The LoadBalancer. try { $this->lb = wfGetLBFactory()->newMainLB(); } catch ( Exception $e ) { @@ -220,7 +221,6 @@ TEXT . " rotating DB failed to obtain new load balancer (" . $e->getMessage() . ")" ); } - // 2. The Connection, through the load balancer. try { $this->db = $this->lb->getConnection( DB_REPLICA, 'dump' ); } catch ( Exception $e ) {