r98932 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98931‎ | r98932 | r98933 >
Date:21:53, 4 October 2011
Author:aaron
Status:ok
Tags:
Comment:
live hack to log for bug 31179 instances
Modified paths:
  • /branches/wmf/1.18wmf1/includes/WikiPage.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/includes/WikiPage.php
@@ -821,6 +821,15 @@
822822 if ( !is_null( $lastRevision ) ) {
823823 # An extra check against threads stepping on each other
824824 $conditions['page_latest'] = $lastRevision;
 825+ if ( $lastRevision === 0 ) { // hack to log bug 31179
 826+ global $wgRequest;
 827+ $time = wfTimestamp( TS_DB );
 828+ $wiki = wfWikiID();
 829+ $msg = "$time $wiki Got page_latest = 0 for `" .
 830+ $this->mTitle->getPrefixedDbKey() .
 831+ "` Request: " . $wgRequest->getFullRequestURL();
 832+ wfErrorLog( $msg, 'udp://10.0.5.8:8420/bug31179' );
 833+ }
825834 }
826835
827836 $now = wfTimestampNow();

Follow-up revisions

RevisionCommit summaryAuthorDate
r98980Revert r98932, causes exception "FauxRequest::getRequestURL() not implemented...tstarling03:59, 5 October 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98927(bug 31179) Fixed problems with undeletion making bad page rows:...aaron21:31, 4 October 2011

Status & tagging log