MediaWiki  REL1_19
TrackBlobs Class Reference

List of all members.

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 = array()

Detailed Description

Definition at line 39 of file trackBlobs.php.


Constructor & Destructor Documentation

TrackBlobs::__construct ( clusters)

Definition at line 47 of file trackBlobs.php.

References $clusters, and echo.


Member Function Documentation

Definition at line 69 of file trackBlobs.php.

References $dbr, echo, and wfGetDB().

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:

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 306 of file trackBlobs.php.

References $lb, $res, echo, wfGetDB(), and wfGetLBFactory().

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 119 of file trackBlobs.php.

References $dbr, and wfGetDB().

Referenced by trackOrphanText(), and trackRevisions().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 110 of file trackBlobs.php.

References wfGetDB().

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 133 of file trackBlobs.php.

Referenced by trackOrphanText(), and trackRevisions().

Here is the caller graph for this function:

Definition at line 59 of file trackBlobs.php.

References checkIntegrity(), findOrphanBlobs(), initTrackingTable(), trackOrphanText(), and trackRevisions().

Here is the call graph for this function:

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 220 of file trackBlobs.php.

References $dbr, $res, $textClause, echo, getTextClause(), interpretPointer(), wfGetDB(), and wfWaitForSlaves().

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:

Scan the revision table for rows stored in the specified clusters.

Definition at line 147 of file trackBlobs.php.

References $dbr, $res, $textClause, echo, getTextClause(), interpretPointer(), wfGetDB(), and wfWaitForSlaves().

Referenced by run().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

TrackBlobs::$batchSize = 1000

Definition at line 44 of file trackBlobs.php.

TrackBlobs::$clusters

Definition at line 40 of file trackBlobs.php.

Referenced by __construct().

TrackBlobs::$doBlobOrphans

Definition at line 41 of file trackBlobs.php.

TrackBlobs::$reportingInterval = 10

Definition at line 45 of file trackBlobs.php.

TrackBlobs::$textClause

Definition at line 40 of file trackBlobs.php.

Referenced by trackOrphanText(), and trackRevisions().

TrackBlobs::$trackedBlobs = array()

Definition at line 42 of file trackBlobs.php.


The documentation for this class was generated from the following file: