From 96a8b6b979e00ab825d53e515a18786985e67793 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 24 Feb 2012 14:47:49 +0000 Subject: [PATCH] Pass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase::rollback() --- includes/LocalisationCache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/LocalisationCache.php b/includes/LocalisationCache.php index f62adc750d..a50bf0d8a8 100644 --- a/includes/LocalisationCache.php +++ b/includes/LocalisationCache.php @@ -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(); -- 2.20.1