https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112323

Revision: 112323
Author:   ialex
Date:     2012-02-24 14:47:49 +0000 (Fri, 24 Feb 2012)
Log Message:
-----------
Pass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and 
DatabaseBase::rollback()

Modified Paths:
--------------
    trunk/phase3/includes/LocalisationCache.php

Modified: trunk/phase3/includes/LocalisationCache.php
===================================================================
--- trunk/phase3/includes/LocalisationCache.php 2012-02-24 14:45:23 UTC (rev 
112322)
+++ trunk/phase3/includes/LocalisationCache.php 2012-02-24 14:47:49 UTC (rev 
112323)
@@ -909,12 +909,12 @@
 
                $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 @@
                        $this->dbw->insert( 'l10n_cache', $this->batch, 
__METHOD__ );
                }
 
-               $this->dbw->commit();
+               $this->dbw->commit( __METHOD__ );
                $this->currentLang = null;
                $this->dbw = null;
                $this->batch = array();


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to