TrackBlobs Class Reference

List of all members.

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


Detailed Description

Definition at line 16 of file trackBlobs.php.


Constructor & Destructor Documentation

TrackBlobs::__construct ( clusters  ) 

Definition at line 24 of file trackBlobs.php.

References $clusters.


Member Function Documentation

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

Definition at line 45 of file trackBlobs.php.

References $dbw, and wfGetDB().

Referenced by run().

TrackBlobs::interpretPointer ( text  ) 

Definition at line 68 of file trackBlobs.php.

References $text.

Referenced by trackOrphanText(), and trackRevisions().

TrackBlobs::run (  ) 

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().


Member Data Documentation

TrackBlobs::$batchSize = 1000

Definition at line 21 of file trackBlobs.php.

TrackBlobs::$clusters

Definition at line 17 of file trackBlobs.php.

Referenced by __construct().

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.


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

Generated on Sat Sep 5 02:08:49 2009 for MediaWiki by  doxygen 1.5.9