r112323 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112322‎ | r112323 | r112324 >
Date:14:47, 24 February 2012
Author:ialex
Status:ok
Tags:
Comment:
Pass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase::rollback()
Modified paths:
  • /trunk/phase3/includes/LocalisationCache.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LocalisationCache.php
@@ -909,12 +909,12 @@
910910
911911 $this->dbw = wfGetDB( DB_MASTER );
912912 try {
913 - $this->dbw->begin();
 913+ $this->dbw->begin( __METHOD__ );
914914 $this->dbw->delete( 'l10n_cache', array( 'lc_lang' => $code ), __METHOD__ );
915915 } catch ( DBQueryError $e ) {
916916 if ( $this->dbw->wasReadOnlyError() ) {
917917 $this->readOnly = true;
918 - $this->dbw->rollback();
 918+ $this->dbw->rollback( __METHOD__ );
919919 $this->dbw->ignoreErrors( false );
920920 return;
921921 } else {
@@ -935,7 +935,7 @@
936936 $this->dbw->insert( 'l10n_cache', $this->batch, __METHOD__ );
937937 }
938938
939 - $this->dbw->commit();
 939+ $this->dbw->commit( __METHOD__ );
940940 $this->currentLang = null;
941941 $this->dbw = null;
942942 $this->batch = array();

Status & tagging log