$options = new ParserOptions;
$parserOutput = $wgParser->parse( $revision->getText(), $title, $options, true, true, $revision->getId() );
+
+ $updates = $parserOutput->getLinksUpdateAndOtherUpdates( $title, false );
+ SecondaryDataUpdate::runUpdates( $updates );
+
+ $dbw->commit();
+ // TODO: We don't know what happens here.
$update = new LinksUpdate( $title, $parserOutput, false );
$update->doUpdate();
$dbw->commit( __METHOD__ );