Public Member Functions | |
__construct ($clusters) | |
run () | |
initTrackingTable () | |
getTextClause () | |
interpretPointer ($text) | |
trackRevisions () | |
Scan the revision table for rows stored in the specified clusters. | |
trackOrphanText () | |
Scan the text table for orphan text Orphan text here does not imply DB corruption -- deleted text tracked by the archive table counts as orphan for our purposes. | |
findOrphanBlobs () | |
Scan the blobs table for rows not registered in blob_tracking (and thus not registered in the text table). | |
Public Attributes | |
$clusters | |
$textClause | |
$doBlobOrphans | |
$trackedBlobs = array() | |
$batchSize = 1000 | |
$reportingInterval = 10 |
Definition at line 16 of file trackBlobs.php.
TrackBlobs::__construct | ( | $ | clusters | ) |
TrackBlobs::findOrphanBlobs | ( | ) |
Scan the blobs table for rows not registered in blob_tracking (and thus not registered in the text table).
Orphan blobs are indicative of DB corruption. They are inaccessible and should probably be deleted.
Definition at line 241 of file trackBlobs.php.
References $dbw, $endId, $lb, $res, $row, $startId, wfGetDB(), and wfGetLBFactory().
Referenced by run().
TrackBlobs::getTextClause | ( | ) |
Definition at line 54 of file trackBlobs.php.
References $dbr, and wfGetDB().
Referenced by trackOrphanText(), and trackRevisions().
TrackBlobs::initTrackingTable | ( | ) |
TrackBlobs::interpretPointer | ( | $ | text | ) |
Definition at line 68 of file trackBlobs.php.
References $text.
Referenced by trackOrphanText(), and trackRevisions().
TrackBlobs::run | ( | ) |
Definition at line 36 of file trackBlobs.php.
References findOrphanBlobs(), initTrackingTable(), trackOrphanText(), and trackRevisions().
TrackBlobs::trackOrphanText | ( | ) |
Scan the text table for orphan text Orphan text here does not imply DB corruption -- deleted text tracked by the archive table counts as orphan for our purposes.
Definition at line 155 of file trackBlobs.php.
References $dbr, $dbw, $endId, $res, $row, $startId, $textClause, getTextClause(), interpretPointer(), wfGetDB(), and wfWaitForSlaves().
Referenced by run().
TrackBlobs::trackRevisions | ( | ) |
Scan the revision table for rows stored in the specified clusters.
Definition at line 82 of file trackBlobs.php.
References $dbr, $dbw, $endId, $res, $row, $startId, $textClause, getTextClause(), interpretPointer(), wfGetDB(), and wfWaitForSlaves().
Referenced by run().
TrackBlobs::$batchSize = 1000 |
Definition at line 21 of file trackBlobs.php.
TrackBlobs::$clusters |
TrackBlobs::$doBlobOrphans |
Definition at line 18 of file trackBlobs.php.
TrackBlobs::$reportingInterval = 10 |
Definition at line 22 of file trackBlobs.php.
TrackBlobs::$textClause |
Definition at line 17 of file trackBlobs.php.
Referenced by trackOrphanText(), and trackRevisions().
TrackBlobs::$trackedBlobs = array() |
Definition at line 19 of file trackBlobs.php.