X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FdumpTextPass.php;h=c6e9aad646b68a4e26d42eddb68425124799593c;hb=8ac073311558aff07799c585c724ba5e31e2cd0b;hp=5d92eec2ae0daeb372c0ce57249ce52c3cf432bd;hpb=82524dc4da650c8017767a2648ed92dde98b8cae;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php index 5d92eec2ae..c6e9aad646 100644 --- a/maintenance/dumpTextPass.php +++ b/maintenance/dumpTextPass.php @@ -27,13 +27,18 @@ require_once __DIR__ . '/backup.inc'; require_once __DIR__ . '/../includes/export/WikiExporter.php'; -use Wikimedia\Rdbms\LoadBalancer; +use Wikimedia\Rdbms\IMaintainableDatabase; /** * @ingroup Maintenance */ class TextPassDumper extends BackupDumper { + /** @var BaseDump */ public $prefetch = null; + /** @var string|bool */ + private $thisPage; + /** @var string|bool */ + private $thisRev; // when we spend more than maxTimeAllowed seconds on this run, we continue // processing until we write out the next complete page, then save output file(s), @@ -88,7 +93,7 @@ class TextPassDumper extends BackupDumper { protected $checkpointFiles = []; /** - * @var Database + * @var IMaintainableDatabase */ protected $db; @@ -583,8 +588,7 @@ TEXT if ( $text === false && isset( $this->prefetch ) && $prefetchNotTried ) { $prefetchNotTried = false; $tryIsPrefetch = true; - $text = $this->prefetch->prefetch( intval( $this->thisPage ), - intval( $this->thisRev ) ); + $text = $this->prefetch->prefetch( (int)$this->thisPage, (int)$this->thisRev ); if ( $text === null ) { $text = false;