Followup r102799, unconditionally running them anyway also isn't much use
authorSam Reed <reedy@users.mediawiki.org>
Fri, 11 Nov 2011 16:58:09 +0000 (16:58 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 11 Nov 2011 16:58:09 +0000 (16:58 +0000)
includes/installer/DatabaseUpdater.php
includes/installer/MysqlUpdater.php

index 6a6c23f..ba51beb 100644 (file)
@@ -570,10 +570,11 @@ abstract class DatabaseUpdater {
                        "Populating log_user_text field, printing progress markers. For large\n" .
                        "databases, you may want to hit Ctrl-C and do this manually with\n" .
                        "maintenance/populateLogUsertext.php.\n" );
+
+                       $task = $this->maintenance->runChild( 'PopulateLogUsertext' );
+                       $task->execute();
+                       $this->insertUpdateRow( 'populate log_usertext' );
                }
-               $task = $this->maintenance->runChild( 'PopulateLogUsertext' );
-               $task->execute();
-               $this->insertUpdateRow( 'populate log_usertext' );
        }
 
        protected function doLogSearchPopulation() {
@@ -582,10 +583,11 @@ abstract class DatabaseUpdater {
                                "Populating log_search table, printing progress markers. For large\n" .
                                "databases, you may want to hit Ctrl-C and do this manually with\n" .
                                "maintenance/populateLogSearch.php.\n" );
+
+                       $task = $this->maintenance->runChild( 'PopulateLogSearch' );
+                       $task->execute();
+                       $this->insertUpdateRow( 'populate log_search' );
                }
-               $task = $this->maintenance->runChild( 'PopulateLogSearch' );
-               $task->execute();
-               $this->insertUpdateRow( 'populate log_search' );
        }
 
        protected function doUpdateTranscacheField() {
index a037e9d..286f144 100644 (file)
@@ -755,10 +755,11 @@ class MysqlUpdater extends DatabaseUpdater {
                                "Populating rev_parent_id fields, printing progress markers. For large\n" .
                                "databases, you may want to hit Ctrl-C and do this manually with\n" .
                                "maintenance/populateParentId.php.\n" );
+
+                       $task = $this->maintenance->runChild( 'PopulateParentId' );
+                       $task->execute();
+                       $this->insertUpdateRow( 'populate rev_parent_id' );
                }
-               $task = $this->maintenance->runChild( 'PopulateParentId' );
-               $task->execute();
-               $this->insertUpdateRow( 'populate rev_parent_id' );
        }
 
        protected function doMaybeProfilingMemoryUpdate() {