Go to the source code of this file.
Variables | |
if(count($args)< 3) | $offset = $args[0] * 3600 |
$start = $args[1] | |
$end = $args[2] | |
$fname = 'fixTimestamps.php' | |
$grace = 60 | |
$dbw = wfGetDB( DB_MASTER ) | |
$revisionTable = $dbw->tableName( 'revision' ) | |
$res | |
$row = $dbw->fetchObject( $res ) | |
if(is_null($row->minrev)) | $minRev = $row->minrev |
$maxRev = $row->maxrev | |
$sql | |
$lastNormal = 0 | |
$badRevs = array() | |
$numGoodRevs = 0 | |
$numBadRevs = count( $badRevs ) | |
$fixup = -$offset |
The time offset must be known and consistent. Start and end times (in 14-character format) restrict the search, and must bracket the damage. There must be a majority of good timestamps in the search period.
Definition in file fixTimestamps.php.
$badRevs = array() |
Definition at line 54 of file fixTimestamps.php.
$dbw = wfGetDB( DB_MASTER ) |
Definition at line 27 of file fixTimestamps.php.
$end = $args[2] |
Definition at line 22 of file fixTimestamps.php.
Referenced by _DiffEngine::_lcs_pos(), ApiQueryBase::addWhereRange(), CBTProcessor::doOpenFunction(), CBTCompiler::doOpenFunction(), CBTProcessor::doOpenText(), CBTCompiler::doOpenText(), CBTProcessor::doText(), CBTCompiler::doText(), SearchHighlighter::extract(), DiffFormatter::format(), Profiler::getCallTreeLine(), Profiler::getFunctionReport(), LocalFile::getHistory(), Language::hebrewNumeral(), WikiExporter::logsByRange(), TextNodeDiffer::markAsDeleted(), TextNodeDiffer::markAsNew(), migrate_page_restrictions(), WikiExporter::pagesByRange(), BacklinkCache::partitionResult(), populate_rev_parent_id(), SearchHighlighter::process(), LinksUpdate::queueRecursiveJobs(), rebuildTextIndex(), refreshLinks(), RecompressTracked::report(), resolveStubs(), GlobalTest::testTime(), updateSearchIndex(), PPFrame_Hash::virtualBracketedImplode(), PPFrame_DOM::virtualBracketedImplode(), and wfSuppressWarnings().
$fixup = -$offset |
Definition at line 98 of file fixTimestamps.php.
$fname = 'fixTimestamps.php' |
Definition at line 23 of file fixTimestamps.php.
$grace = 60 |
Definition at line 24 of file fixTimestamps.php.
$lastNormal = 0 |
Definition at line 53 of file fixTimestamps.php.
$maxRev = $row->maxrev |
if (is_null($row->minrev)) $minRev = $row->minrev |
Definition at line 38 of file fixTimestamps.php.
$numBadRevs = count( $badRevs ) |
Definition at line 77 of file fixTimestamps.php.
$numGoodRevs = 0 |
Definition at line 55 of file fixTimestamps.php.
if (count($args)< 3) $offset = $args[0] * 3600 |
Definition at line 20 of file fixTimestamps.php.
Referenced by WikiXmlError::_extractContext(), memcached::_load_items(), ApiQuerySiteinfo::appendGeneralInfo(), WikiImporter::doImport(), SpecialExport::execute(), IndexPager::extractResultInfo(), PageHistory::fetchRevisions(), ParserTest::fuzzTest(), Article::getContributors(), IndexPager::getLimitLinks(), WebRequest::getLimitOffset(), Category::getMembers(), SearchHighlighter::highlightText(), DatabasePostgres::limitResult(), DatabaseOracle::limitResult(), DatabaseMssql::limitResult(), DatabaseIbm_db2::limitResult(), Database::limitResult(), Job::pop(), SearchHighlighter::position(), SearchHighlighter::process(), TextPassDumper::readDump(), IndexPager::reallyDoQuery(), Parser_LinkHooks::replaceInternalLinks2(), ApiQueryExtLinksUsage::run(), IEContentAnalyzer::sampleData(), DatabaseIbm_db2::select(), IndexPager::setOffset(), SevenZipStream::stream_seek(), wfShowingResults(), wfShowingResultsNum(), wfSpecialAncientpages(), wfSpecialBrokenRedirects(), wfSpecialDeadendpages(), wfSpecialDisambiguations(), wfSpecialDoubleRedirects(), wfSpecialFewestrevisions(), wfSpecialFileDuplicateSearch(), wfSpecialLinkSearch(), wfSpecialListredirects(), wfSpecialLonelypages(), wfSpecialLongpages(), wfSpecialMIMEsearch(), wfSpecialMostcategories(), wfSpecialMostimages(), wfSpecialMostlinked(), wfSpecialMostlinkedCategories(), wfSpecialMostlinkedtemplates(), wfSpecialMostrevisions(), wfSpecialPopularpages(), wfSpecialShortpages(), wfSpecialUncategorizedcategories(), wfSpecialUncategorizedimages(), wfSpecialUncategorizedpages(), wfSpecialUncategorizedtemplates(), wfSpecialUnusedCategories(), wfSpecialUnusedimages(), wfSpecialUnusedtemplates(), wfSpecialUnwatchedpages(), wfSpecialWantedCategories(), wfSpecialWantedFiles(), wfSpecialWantedpages(), wfSpecialWantedTemplates(), wfSpecialWithoutinterwiki(), wfViewPrevNext(), and WikiXmlError::WikiXmlError().
$res |
Initial value:
$dbw->query( "SELECT MIN(rev_id) as minrev, MAX(rev_id) as maxrev FROM $revisionTable " . "WHERE rev_timestamp BETWEEN '{$start}' AND '{$end}'", $fname )
Definition at line 29 of file fixTimestamps.php.
$revisionTable = $dbw->tableName( 'revision' ) |
Definition at line 28 of file fixTimestamps.php.
$row = $dbw->fetchObject( $res ) |
Definition at line 31 of file fixTimestamps.php.
$sql |
Initial value:
"SELECT rev_id, rev_timestamp FROM $revisionTable " . "WHERE rev_id BETWEEN $minRev AND $maxRev"
Definition at line 42 of file fixTimestamps.php.
$start = $args[1] |
Definition at line 21 of file fixTimestamps.php.