X-Git-Url: https://git.heureux-cyclage.org/index.php?a=blobdiff_plain;f=maintenance%2FdumpTextPass.php;h=d8661c1a3befc5e933c42c2976db375355d38e3b;hb=ee7cc3e24c7d375028ac9a10f5f3ea75f580f5bc;hp=cfb59c6004301afe70da41867a2e489ebb2f68db;hpb=47437e0653542aae57ea456b24486efb48ee8aac;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index cfb59c6004..d8661c1a3b 100644 --- a/maintenance/dumpTextPass.php +++ b/maintenance/dumpTextPass.php @@ -86,7 +86,7 @@ class TextPassDumper extends BackupDumper { protected $checkpointFiles = []; /** - * @var DatabaseBase + * @var Database */ protected $db; @@ -222,7 +222,7 @@ TEXT // 2. The Connection, through the load balancer. try { - $this->db = $this->lb->getConnection( DB_SLAVE, 'dump' ); + $this->db = $this->lb->getConnection( DB_REPLICA, 'dump' ); } catch ( Exception $e ) { throw new MWException( __METHOD__ . " rotating DB failed to obtain new database (" . $e->getMessage() . ")" );