X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fbackup.inc;h=60b8a7a9bb88f22c795b98be86f823f492104be6;hb=08edb27f6ce31c676660a4ef89b87da79bde2cc2;hp=286fb58fb641c3b192cad5cdff09bea311e3922c;hpb=d17eeb742a26c2567de96872c0419b39b97cde56;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/backup.inc b/maintenance/backup.inc index 286fb58fb6..00dbd00c86 100644 --- a/maintenance/backup.inc +++ b/maintenance/backup.inc @@ -25,9 +25,9 @@ */ require_once __DIR__ . '/Maintenance.php'; -require_once __DIR__ . '/../includes/export/DumpFilter.php'; use Wikimedia\Rdbms\LoadBalancer; +use Wikimedia\Rdbms\IDatabase; /** * @ingroup Dump Maintenance @@ -418,25 +418,4 @@ class BackupDumper extends Maintenance { fwrite( $this->stderr, $string . "\n" ); } } - - function fatalError( $msg ) { - $this->error( "$msg\n", 1 ); - } -} - -class ExportProgressFilter extends DumpFilter { - function __construct( &$sink, &$progress ) { - parent::__construct( $sink ); - $this->progress = $progress; - } - - function writeClosePage( $string ) { - parent::writeClosePage( $string ); - $this->progress->reportPage(); - } - - function writeRevision( $rev, $string ) { - parent::writeRevision( $rev, $string ); - $this->progress->revCount(); - } }