MediaWiki
1.34.0
|
Maintenance script to do various checks on external storage. More...
Public Member Functions | |
addError ( $type, $msg, $ids) | |
check ( $fix=false, $xml='') | |
checkExternalConcatBlobs ( $externalConcatBlobs) | |
importRevision (&$revision, &$importer) | |
restoreText ( $revIds, $xml) | |
Public Attributes | |
ExternalStoreDB | $dbStore = null |
$errorDescriptions | |
$errors | |
$oldIdMap | |
const | CONCAT_HEADER = 'O:27:"concatenatedgziphistoryblob"' |
Maintenance script to do various checks on external storage.
@fixme this should extend the base Maintenance class
Definition at line 46 of file checkStorage.php.
CheckStorage::addError | ( | $type, | |
$msg, | |||
$ids | |||
) |
Definition at line 401 of file checkStorage.php.
References $type.
Referenced by check(), and checkExternalConcatBlobs().
CheckStorage::check | ( | $fix = false , |
|
$xml = '' |
|||
) |
Definition at line 60 of file checkStorage.php.
References $dbr, $errors, $matches, $oldIdMap, $path, $res, $wgMultiContentRevisionSchemaMigrationStage, addError(), checkExternalConcatBlobs(), DB_MASTER, DB_REPLICA, restoreText(), SCHEMA_COMPAT_READ_OLD, unserialize(), and wfGetDB().
CheckStorage::checkExternalConcatBlobs | ( | $externalConcatBlobs | ) |
Definition at line 424 of file checkStorage.php.
References $res, and addError().
Referenced by check().
CheckStorage::importRevision | ( | & | $revision, |
& | $importer | ||
) |
Definition at line 527 of file checkStorage.php.
References $content, $dbr, $res, $wgMultiContentRevisionSchemaMigrationStage, Revision\compressRevisionText(), DB_MASTER, DB_REPLICA, SCHEMA_COMPAT_READ_OLD, and wfGetDB().
CheckStorage::restoreText | ( | $revIds, | |
$xml | |||
) |
Definition at line 466 of file checkStorage.php.
References $dbr, $file, $source, $wgDBname, DB_MASTER, DB_REPLICA, wfGetDB(), wfMessage(), and wfTempDir().
Referenced by check().
ExternalStoreDB CheckStorage::$dbStore = null |
Definition at line 50 of file checkStorage.php.
CheckStorage::$errorDescriptions |
Definition at line 52 of file checkStorage.php.
CheckStorage::$errors |
Definition at line 48 of file checkStorage.php.
Referenced by check().
CheckStorage::$oldIdMap |
Definition at line 48 of file checkStorage.php.
Referenced by check().
const CheckStorage::CONCAT_HEADER = 'O:27:"concatenatedgziphistoryblob"' |
Definition at line 47 of file checkStorage.php.