Pass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 24 Feb 2012 14:47:49 +0000 (14:47 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Fri, 24 Feb 2012 14:47:49 +0000 (14:47 +0000)
includes/LocalisationCache.php

index f62adc7..a50bf0d 100644 (file)
@@ -909,12 +909,12 @@ class LCStore_DB implements LCStore {
 
                $this->dbw = wfGetDB( DB_MASTER );
                try {
-                       $this->dbw->begin();
+                       $this->dbw->begin( __METHOD__ );
                        $this->dbw->delete( 'l10n_cache', array( 'lc_lang' => $code ), __METHOD__ );
                } catch ( DBQueryError $e ) {
                        if ( $this->dbw->wasReadOnlyError() ) {
                                $this->readOnly = true;
-                               $this->dbw->rollback();
+                               $this->dbw->rollback( __METHOD__ );
                                $this->dbw->ignoreErrors( false );
                                return;
                        } else {
@@ -935,7 +935,7 @@ class LCStore_DB implements LCStore {
                        $this->dbw->insert( 'l10n_cache', $this->batch, __METHOD__ );
                }
 
-               $this->dbw->commit();
+               $this->dbw->commit( __METHOD__ );
                $this->currentLang = null;
                $this->dbw = null;
                $this->batch = array();