MediaWiki REL1_33
|
Public Member Functions | |
__construct ( $clusters) | |
checkIntegrity () | |
findOrphanBlobs () | |
Scan the blobs table for rows not registered in blob_tracking (and thus not registered in the text table). | |
getTextClause () | |
initTrackingTable () | |
interpretPointer ( $text) | |
run () | |
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. | |
trackRevisions () | |
Scan the revision table for rows stored in the specified clusters. | |
Public Attributes | |
$batchSize = 1000 | |
$clusters | |
$doBlobOrphans | |
$reportingInterval = 10 | |
$textClause | |
$trackedBlobs = [] | |
Definition at line 41 of file trackBlobs.php.
TrackBlobs::__construct | ( | $clusters | ) |
Definition at line 49 of file trackBlobs.php.
TrackBlobs::checkIntegrity | ( | ) |
Definition at line 71 of file trackBlobs.php.
References $dbr, and(), DB_REPLICA, and wfGetDB().
Referenced by run().
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 291 of file trackBlobs.php.
References $e, $res, and(), DB_MASTER, DB_REPLICA, and wfGetDB().
Referenced by run().
TrackBlobs::getTextClause | ( | ) |
Definition at line 102 of file trackBlobs.php.
References $dbr, $textClause, DB_REPLICA, and wfGetDB().
Referenced by trackOrphanText(), and trackRevisions().
TrackBlobs::initTrackingTable | ( | ) |
Definition at line 93 of file trackBlobs.php.
References DB_MASTER, and wfGetDB().
Referenced by run().
TrackBlobs::interpretPointer | ( | $text | ) |
Definition at line 117 of file trackBlobs.php.
Referenced by trackOrphanText(), and trackRevisions().
TrackBlobs::run | ( | ) |
Definition at line 61 of file trackBlobs.php.
References checkIntegrity(), 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 205 of file trackBlobs.php.
References $dbr, $res, $textClause, and(), DB_MASTER, DB_REPLICA, getTextClause(), interpretPointer(), wfGetDB(), and wfWaitForSlaves().
Referenced by run().
TrackBlobs::trackRevisions | ( | ) |
Scan the revision table for rows stored in the specified clusters.
Definition at line 132 of file trackBlobs.php.
References $dbr, $res, $textClause, and(), DB_MASTER, DB_REPLICA, getTextClause(), interpretPointer(), wfGetDB(), and wfWaitForSlaves().
Referenced by run().
TrackBlobs::$batchSize = 1000 |
Definition at line 46 of file trackBlobs.php.
TrackBlobs::$clusters |
Definition at line 42 of file trackBlobs.php.
Referenced by __construct().
TrackBlobs::$doBlobOrphans |
Definition at line 43 of file trackBlobs.php.
TrackBlobs::$reportingInterval = 10 |
Definition at line 47 of file trackBlobs.php.
TrackBlobs::$textClause |
Definition at line 42 of file trackBlobs.php.
Referenced by getTextClause(), trackOrphanText(), and trackRevisions().
TrackBlobs::$trackedBlobs = [] |
Definition at line 44 of file trackBlobs.php.