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 17 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 242 of file trackBlobs.php.
References $dbw, $endId, $res, $startId, wfGetDB(), and wfGetLBFactory().
Referenced by run().
TrackBlobs::getTextClause | ( | ) |
Definition at line 55 of file trackBlobs.php.
References $dbr, and wfGetDB().
Referenced by trackOrphanText(), and trackRevisions().
TrackBlobs::initTrackingTable | ( | ) |
TrackBlobs::interpretPointer | ( | $ | text | ) |
Definition at line 69 of file trackBlobs.php.
Referenced by trackOrphanText(), and trackRevisions().
TrackBlobs::run | ( | ) |
Definition at line 37 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 156 of file trackBlobs.php.
References $dbr, $dbw, $endId, $res, $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 83 of file trackBlobs.php.
References $dbr, $dbw, $endId, $res, $startId, $textClause, getTextClause(), interpretPointer(), wfGetDB(), and wfWaitForSlaves().
Referenced by run().
TrackBlobs::$batchSize = 1000 |
Definition at line 22 of file trackBlobs.php.
TrackBlobs::$clusters |
TrackBlobs::$doBlobOrphans |
Definition at line 19 of file trackBlobs.php.
TrackBlobs::$reportingInterval = 10 |
Definition at line 23 of file trackBlobs.php.
TrackBlobs::$textClause |
Definition at line 18 of file trackBlobs.php.
Referenced by trackOrphanText(), and trackRevisions().
TrackBlobs::$trackedBlobs = array() |
Definition at line 20 of file trackBlobs.php.