X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpTextPass.php;h=581f0d7b4d37cb8bb49833853398128efc5f8d35;hb=1f726368684c1eff6f1f0c4ba16cabd9beac19a8;hp=d8661c1a3befc5e933c42c2976db375355d38e3b;hpb=f43fa6f4f0e2cb60b8543daad661b48a3e0653a9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index d8661c1a3b..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 Database + * @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 ) {