X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FbackupTextPass.inc;h=f16772c5162830879a7e063576fb202047fa363e;hb=075b90235e86de663c000db2c90253509bb97375;hp=c515c6fec9ada737af0d047ee38ce67cb8d9f979;hpb=f644281e16dafaafa62de8e548dd0f54f5b1265e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/backupTextPass.inc b/maintenance/backupTextPass.inc index c515c6fec9..f16772c516 100644 --- a/maintenance/backupTextPass.inc +++ b/maintenance/backupTextPass.inc @@ -82,7 +82,6 @@ class TextPassDumper extends BackupDumper { */ protected $db; - /** * Drop the database connection $this->db and try to get a new one. * @@ -123,16 +122,14 @@ class TextPassDumper extends BackupDumper { throw new MWException( __METHOD__ . " rotating DB failed to obtain new load balancer (" . $e->getMessage() . ")" ); } - // 2. The Connection, through the load balancer. try { - $this->db = $this->lb->getConnection( DB_SLAVE, 'backup' ); + $this->db = $this->lb->getConnection( DB_SLAVE, 'dump' ); } catch ( Exception $e ) { throw new MWException( __METHOD__ . " rotating DB failed to obtain new database (" . $e->getMessage() . ")" ); } } - function initProgress( $history = WikiExporter::FULL ) { parent::initProgress(); $this->timeOfCheckpoint = $this->startTime; @@ -420,8 +417,8 @@ class TextPassDumper extends BackupDumper { $text = false; // The candidate for a good text. false if no proper value. $failures = 0; // The number of times, this invocation of getText already failed. - static $consecutiveFailedTextRetrievals = 0; // The number of times getText failed without - // yielding a good text in between. + // The number of times getText failed without yielding a good text in between. + static $consecutiveFailedTextRetrievals = 0; $this->fetchCount++; @@ -556,7 +553,6 @@ class TextPassDumper extends BackupDumper { return ""; } - /** * May throw a database error if, say, the server dies during query. * @param $id