MediaWiki
REL1_24
|
Maintenance script to fix bug 20757. More...
Public Member Functions | |
__construct () | |
execute () | |
findTextIdInPage ($pageId, $textId) | |
getRevTextMap ($pageId) | |
isUnbrokenStub ($stub, $secondaryRow) | |
This is based on part of HistoryBlobStub::getText(). | |
waitForSlaves () | |
Public Attributes | |
$batchSize = 10000 | |
$mapCache = array() | |
$mapCacheSize = 0 | |
$maxMapCacheSize = 1000000 |
Maintenance script to fix bug 20757.
Definition at line 31 of file fixBug20757.php.
Reimplemented from Maintenance.
Definition at line 37 of file fixBug20757.php.
References Maintenance\addOption().
Reimplemented from Maintenance.
Definition at line 44 of file fixBug20757.php.
References $dbr, $flags, $res, $revId, array(), as, ExternalStore\fetchFromURL(), findTextIdInPage(), Maintenance\getOption(), isUnbrokenStub(), print, waitForSlaves(), and wfGetDB().
FixBug20757::findTextIdInPage | ( | $ | pageId, |
$ | textId | ||
) |
Definition at line 268 of file fixBug20757.php.
References getRevTextMap().
Referenced by execute().
FixBug20757::getRevTextMap | ( | $ | pageId | ) |
Definition at line 277 of file fixBug20757.php.
References $dbr, $key, $res, array(), as, key, and wfGetDB().
Referenced by findTextIdInPage().
FixBug20757::isUnbrokenStub | ( | $ | stub, |
$ | secondaryRow | ||
) |
This is based on part of HistoryBlobStub::getText().
Determine if the text can be retrieved from the row in the normal way.
array | $stub | |
stdClass | $secondaryRow |
Definition at line 310 of file fixBug20757.php.
References $flags, $path, list, wfRestoreWarnings(), and wfSuppressWarnings().
Referenced by execute().
Definition at line 259 of file fixBug20757.php.
References wfWaitForSlaves().
Referenced by execute().
FixBug20757::$batchSize = 10000 |
Definition at line 32 of file fixBug20757.php.
FixBug20757::$mapCache = array() |
Definition at line 33 of file fixBug20757.php.
FixBug20757::$mapCacheSize = 0 |
Definition at line 34 of file fixBug20757.php.
FixBug20757::$maxMapCacheSize = 1000000 |
Definition at line 35 of file fixBug20757.php.