Index: trunk/phase3/maintenance/importDump.php |
— | — | @@ -45,6 +45,7 @@ |
46 | 46 | function handleRevision( $rev ) { |
47 | 47 | $title = $rev->getTitle(); |
48 | 48 | if (!$title) { |
| 49 | + $this->progress( "Got bogus revision with null title!" ); |
49 | 50 | return; |
50 | 51 | } |
51 | 52 | $display = $title->getPrefixedText(); |
Index: trunk/phase3/includes/SpecialImport.php |
— | — | @@ -197,6 +197,10 @@ |
198 | 198 | $userText = $this->getUser(); |
199 | 199 | } |
200 | 200 | |
| 201 | + // avoid memory leak...? |
| 202 | + global $wgLinkCache; |
| 203 | + $wgLinkCache->clear(); |
| 204 | + |
201 | 205 | $article = new Article( $this->title ); |
202 | 206 | $pageId = $article->getId(); |
203 | 207 | if( $pageId == 0 ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -118,6 +118,7 @@ |
119 | 119 | by default when 'watchdefault' option is on |
120 | 120 | * Skip update of disused 'rc_cur_time' field (todo: discard the field) |
121 | 121 | * (bug 3506) Avoid MySQL error when Listusers returns no results |
| 122 | +* (bug 3182) Clear link cache during import to prevent memory leak |
122 | 123 | |
123 | 124 | |
124 | 125 | === Caveats === |