r39937 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r39936‎ | r39937 | r39938 >
Date:06:09, 25 August 2008
Author:aaron
Status:old
Tags:
Comment:
slight transaction tweak
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php
@@ -695,15 +695,13 @@
696696 $key = wfMemcKey( 'flaggedrevisiontext', 'revid', $rev->getId() );
697697 $wgMemc->delete( $key );
698698 }
699 - $dbw->commit();
700 -
701 - $dbw->begin();
702 -
703699 # Update recent changes
704700 self::updateRecentChanges( $this->page, $rev->getId(), $this->rcid );
705701 # Update the article review log
706702 self::updateLog( $this->page, $this->dims, $this->oflags, $this->comment, $this->oldid, $oldSvId, true );
 703+ $dbw->commit();
707704
 705+ $dbw->begin();
708706 # Update the links tables as the stable version may now be the default page.
709707 # Try using the parser cache first since we didn't actually edit the current version.
710708 $parserCache = ParserCache::singleton();

Status & tagging log