Pass __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 21 Feb 2012 19:56:43 +0000 (19:56 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Tue, 21 Feb 2012 19:56:43 +0000 (19:56 +0000)
includes/Title.php

index 6485228..8d87373 100644 (file)
@@ -3476,7 +3476,7 @@ class Title {
                        RepoGroup::singleton()->clearCache( $nt ); # clear false negative cache
                }
 
-               $dbw->begin(); # If $file was a LocalFile, its transaction would have closed our own.
+               $dbw->begin( __METHOD__ ); # If $file was a LocalFile, its transaction would have closed our own.
                $pageid = $this->getArticleID( self::GAID_FOR_UPDATE );
                $protected = $this->isProtected();
 
@@ -3548,7 +3548,7 @@ class Title {
                        WatchedItem::duplicateEntries( $this, $nt );
                }
 
-               $dbw->commit();
+               $dbw->commit( __METHOD__ );
 
                wfRunHooks( 'TitleMoveComplete', array( &$this, &$nt, &$wgUser, $pageid, $redirid ) );
                return true;