Petr Onderka has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/77903


Change subject: Force lazy loading of revision text in populateRevisionSha1
......................................................................

Force lazy loading of revision text in populateRevisionSha1

Change-Id: Ic47fd482523e0a2c705c24e93525959eca52409a
---
M maintenance/populateRevisionSha1.php
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/03/77903/1

diff --git a/maintenance/populateRevisionSha1.php 
b/maintenance/populateRevisionSha1.php
index 89bfb85..8b3321b 100644
--- a/maintenance/populateRevisionSha1.php
+++ b/maintenance/populateRevisionSha1.php
@@ -146,6 +146,7 @@
                        $rev = ( $table === 'archive' )
                                ? Revision::newFromArchiveRow( $row )
                                : new Revision( $row );
+                       $rev->getContent( REVISION::RAW );
                        $text = $rev->getSerializedData();
                } catch ( MWException $e ) {
                        $this->output( "Data of revision with 
{$idCol}={$row->$idCol} unavailable!\n" );

-- 
To view, visit https://gerrit.wikimedia.org/r/77903
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic47fd482523e0a2c705c24e93525959eca52409a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Petr Onderka <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to