|
MediaWiki master
|
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 (array $options) | |
| critical (string $msg) | |
| debug (string $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 (string $msg) | |
| moveTextRow ( $textId, $url) | |
| Atomic move operation. | |
Static Public Member Functions | |
| static | getOptionsWithArgs () |
| static | newFromCommandLine (array $args, array $options) |
Public Attributes | |
| int | $batchSize = 1000 |
| int false | $childId = false |
| resource[] | $childPipes |
| resource[] | $childProcs |
| bool | $copyOnly = false |
| string | $criticalLog = null |
| string | $debugLog = null |
| string[] | $destClusters |
| string | $infoLog = null |
| bool | $isChild = false |
| bool | $noCount = false |
| int | $numBatches = 0 |
| int | $numProcs = 1 |
| int | $orphanBatchSize = 1000 |
| class string< HistoryBlob > | $orphanBlobClass |
| class string< HistoryBlob > | $pageBlobClass |
| int | $prevChildId |
| int | $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 46 of file recompressTracked.php.
| RecompressTracked::__construct | ( | array | $options | ) |
Definition at line 121 of file recompressTracked.php.
| RecompressTracked::critical | ( | string | $msg | ) |
Definition at line 155 of file recompressTracked.php.
| RecompressTracked::debug | ( | string | $msg | ) |
Definition at line 141 of file recompressTracked.php.
References wfDebug().
| RecompressTracked::execute | ( | ) |
Execute parent or child depending on the isChild option.
Definition at line 183 of file recompressTracked.php.
| RecompressTracked::executeChild | ( | ) |
Main entry point for worker processes.
Definition at line 455 of file recompressTracked.php.
| RecompressTracked::executeParent | ( | ) |
Execute the parent process.
Definition at line 194 of file recompressTracked.php.
|
static |
Definition at line 106 of file recompressTracked.php.
References $optionsWithArgs.
| RecompressTracked::getTargetCluster | ( | ) |
Returns the name of the next target cluster.
Definition at line 639 of file recompressTracked.php.
| RecompressTracked::info | ( | string | $msg | ) |
Definition at line 148 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 565 of file recompressTracked.php.
References $url.
|
static |
Definition at line 110 of file recompressTracked.php.
| int RecompressTracked::$batchSize = 1000 |
Definition at line 50 of file recompressTracked.php.
| int false RecompressTracked::$childId = false |
Definition at line 74 of file recompressTracked.php.
| resource [] RecompressTracked::$childPipes |
Definition at line 64 of file recompressTracked.php.
| resource [] RecompressTracked::$childProcs |
Definition at line 66 of file recompressTracked.php.
| bool RecompressTracked::$copyOnly = false |
Definition at line 70 of file recompressTracked.php.
| string RecompressTracked::$criticalLog = null |
Definition at line 79 of file recompressTracked.php.
| string RecompressTracked::$debugLog = null |
Definition at line 77 of file recompressTracked.php.
| string [] RecompressTracked::$destClusters |
Definition at line 48 of file recompressTracked.php.
| string RecompressTracked::$infoLog = null |
Definition at line 78 of file recompressTracked.php.
| bool RecompressTracked::$isChild = false |
Definition at line 72 of file recompressTracked.php.
| bool RecompressTracked::$noCount = false |
Definition at line 76 of file recompressTracked.php.
| int RecompressTracked::$numBatches = 0 |
Definition at line 58 of file recompressTracked.php.
| int RecompressTracked::$numProcs = 1 |
Definition at line 56 of file recompressTracked.php.
| int RecompressTracked::$orphanBatchSize = 1000 |
Definition at line 52 of file recompressTracked.php.
| class string<HistoryBlob> RecompressTracked::$orphanBlobClass |
Definition at line 62 of file recompressTracked.php.
| class string<HistoryBlob> RecompressTracked::$pageBlobClass |
Definition at line 60 of file recompressTracked.php.
| int RecompressTracked::$prevChildId |
Definition at line 68 of file recompressTracked.php.
| int RecompressTracked::$reportingInterval = 10 |
Definition at line 54 of file recompressTracked.php.
| ExternalStoreDB RecompressTracked::$store |
Definition at line 81 of file recompressTracked.php.