X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpTextPass.php;h=5d92eec2ae0daeb372c0ce57249ce52c3cf432bd;hb=133f2774cf9bca3a401c5223e0146068ac2298ed;hp=d8661c1a3befc5e933c42c2976db375355d38e3b;hpb=59e7337ea612d03d08b67e6ada707e3d7ced738d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index d8661c1a3b..5d92eec2ae 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\LoadBalancer; + /** * @ingroup Maintenance */ @@ -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 ) {