X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FdumpTextPass.php;h=5d92eec2ae0daeb372c0ce57249ce52c3cf432bd;hp=d8661c1a3befc5e933c42c2976db375355d38e3b;hb=49748181dd56ec97e7ba7c13e684a16abceb3cc0;hpb=72b9240497311a2fa5f5b76d9e8bb953dc59853f 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 ) {