Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/261727

Change subject: Use __METHOD__ for DB begin/commit calls
......................................................................

Use __METHOD__ for DB begin/commit calls

Change-Id: I24eaf8bcffbff6160cbeed51a28d485153006489
---
M includes/cache/LCStore_BSDB.php
1 file changed, 3 insertions(+), 3 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation 
refs/changes/27/261727/1

diff --git a/includes/cache/LCStore_BSDB.php b/includes/cache/LCStore_BSDB.php
index 54975e3..43d44b9 100644
--- a/includes/cache/LCStore_BSDB.php
+++ b/includes/cache/LCStore_BSDB.php
@@ -60,12 +60,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__ );
                                if ( is_callable( array( $this->dbw, 
'ignoreErrors' ) ) ) {
                                        $this->dbw->ignoreErrors( false );
                                }
@@ -85,7 +85,7 @@
                if ( $this->batch ) {
                        $this->dbw->insert( 'l10n_cache', $this->batch, 
__METHOD__ );
                }
-               $this->dbw->commit();
+               $this->dbw->commit( __METHOD__ );
                $this->currentLang = null;
                $this->dbw = null;
                $this->batch = array( );

-- 
To view, visit https://gerrit.wikimedia.org/r/261727
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I24eaf8bcffbff6160cbeed51a28d485153006489
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

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

Reply via email to