Index: branches/wmf/1.18wmf1/includes/WikiPage.php |
— | — | @@ -821,6 +821,15 @@ |
822 | 822 | if ( !is_null( $lastRevision ) ) { |
823 | 823 | # An extra check against threads stepping on each other |
824 | 824 | $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 | + } |
825 | 834 | } |
826 | 835 | |
827 | 836 | $now = wfTimestampNow(); |