Remove unnecessary transaction
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 20 Sep 2008 14:37:50 +0000 (14:37 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 20 Sep 2008 14:37:50 +0000 (14:37 +0000)
includes/Article.php

index 9a8b5f3..9ffc2f2 100644 (file)
@@ -1554,8 +1554,6 @@ class Article {
                        $this->mGoodAdjustment = (int)$this->isCountable( $text );
                        $this->mTotalAdjustment = 1;
 
-                       $dbw->begin();
-
                        # Add the page record; stake our claim on this title!
                        # This will fail with a database query exception if the article already exists
                        $newid = $this->insertOn( $dbw );
@@ -1587,7 +1585,6 @@ class Article {
                                }
                        }
                        $user->incEditCount();
-                       $dbw->commit();
 
                        # Update links, etc.
                        $this->editUpdates( $text, $summary, $isminor, $now, $revisionId, true );