r41233 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41232‎ | r41233 | r41234 >
Date:18:00, 24 September 2008
Author:aaron
Status:old
Tags:
Comment:
Self-revert and re-add transactions here. Sacrifices some atomicity for less transaction time.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -1570,6 +1570,7 @@
15711571 $this->mGoodAdjustment = (int)$this->isCountable( $text );
15721572 $this->mTotalAdjustment = 1;
15731573
 1574+ $dbw->begin();
15741575 # Add the page record; stake our claim on this title!
15751576 # This will fail with a database query exception if the article already exists
15761577 $newid = $this->insertOn( $dbw );
@@ -1601,6 +1602,7 @@
16021603 }
16031604 }
16041605 $user->incEditCount();
 1606+ $dbw->commit();
16051607
16061608 # Update links, etc.
16071609 $this->editUpdates( $text, $summary, $isminor, $now, $revisionId, true );