MediaWiki REL1_39
|
Maintenance script that moves blobs indexed by trackBlobs.php to a specified list of destination clusters, and recompresses them in the process. More...
Public Member Functions | |
__construct ( $options) | |
critical ( $msg) | |
debug ( $msg) | |
execute () | |
Execute parent or child depending on the isChild option. | |
executeChild () | |
Main entry point for worker processes. | |
executeParent () | |
Execute the parent process. | |
getTargetCluster () | |
Returns the name of the next target cluster. | |
info ( $msg) | |
moveTextRow ( $textId, $url) | |
Atomic move operation. | |
Static Public Member Functions | |
static | getOptionsWithArgs () |
static | newFromCommandLine ( $args, $options) |
Public Attributes | |
$batchSize = 1000 | |
$childId = false | |
$childPipes | |
$childProcs | |
$copyOnly = false | |
$criticalLog | |
$debugLog | |
$destClusters | |
$infoLog | |
$isChild = false | |
$noCount = false | |
$numBatches = 0 | |
$numProcs = 1 | |
$orphanBatchSize = 1000 | |
$orphanBlobClass | |
$pageBlobClass | |
$prevChildId | |
$reportingInterval = 10 | |
ExternalStoreDB | $store |
Maintenance script that moves blobs indexed by trackBlobs.php to a specified list of destination clusters, and recompresses them in the process.
Definition at line 59 of file recompressTracked.php.
RecompressTracked::__construct | ( | $options | ) |
Definition at line 112 of file recompressTracked.php.
RecompressTracked::critical | ( | $msg | ) |
Definition at line 146 of file recompressTracked.php.
Referenced by moveTextRow().
RecompressTracked::debug | ( | $msg | ) |
Definition at line 132 of file recompressTracked.php.
References wfDebug().
Referenced by executeChild().
RecompressTracked::execute | ( | ) |
Execute parent or child depending on the isChild option.
Definition at line 177 of file recompressTracked.php.
References executeChild(), and executeParent().
RecompressTracked::executeChild | ( | ) |
RecompressTracked::executeParent | ( | ) |
Execute the parent process.
Definition at line 188 of file recompressTracked.php.
Referenced by execute().
|
static |
Definition at line 97 of file recompressTracked.php.
RecompressTracked::getTargetCluster | ( | ) |
Returns the name of the next target cluster.
Definition at line 648 of file recompressTracked.php.
RecompressTracked::info | ( | $msg | ) |
Definition at line 139 of file recompressTracked.php.
RecompressTracked::moveTextRow | ( | $textId, | |
$url ) |
Atomic move operation.
Write the new URL to the text table and set the bt_moved flag.
This is done in a single transaction to provide restartable behavior without data loss.
The transaction is kept short to reduce locking.
int | $textId | |
string | $url |
Definition at line 576 of file recompressTracked.php.
References critical(), DB_PRIMARY, and wfGetDB().
|
static |
Definition at line 101 of file recompressTracked.php.
References $args.
RecompressTracked::$batchSize = 1000 |
Definition at line 61 of file recompressTracked.php.
RecompressTracked::$childId = false |
Definition at line 70 of file recompressTracked.php.
RecompressTracked::$childPipes |
Definition at line 67 of file recompressTracked.php.
RecompressTracked::$childProcs |
Definition at line 67 of file recompressTracked.php.
RecompressTracked::$copyOnly = false |
Definition at line 68 of file recompressTracked.php.
RecompressTracked::$criticalLog |
Definition at line 72 of file recompressTracked.php.
RecompressTracked::$debugLog |
Definition at line 72 of file recompressTracked.php.
RecompressTracked::$destClusters |
Definition at line 60 of file recompressTracked.php.
RecompressTracked::$infoLog |
Definition at line 72 of file recompressTracked.php.
RecompressTracked::$isChild = false |
Definition at line 69 of file recompressTracked.php.
RecompressTracked::$noCount = false |
Definition at line 71 of file recompressTracked.php.
RecompressTracked::$numBatches = 0 |
Definition at line 65 of file recompressTracked.php.
RecompressTracked::$numProcs = 1 |
Definition at line 64 of file recompressTracked.php.
RecompressTracked::$orphanBatchSize = 1000 |
Definition at line 62 of file recompressTracked.php.
RecompressTracked::$orphanBlobClass |
Definition at line 66 of file recompressTracked.php.
RecompressTracked::$pageBlobClass |
Definition at line 66 of file recompressTracked.php.
RecompressTracked::$prevChildId |
Definition at line 67 of file recompressTracked.php.
RecompressTracked::$reportingInterval = 10 |
Definition at line 63 of file recompressTracked.php.
ExternalStoreDB RecompressTracked::$store |
Definition at line 74 of file recompressTracked.php.