jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Mglaser: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I24eaf8bcffbff6160cbeed51a28d485153006489
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Mglaser <[email protected]>
Gerrit-Reviewer: Pwirth <[email protected]>
Gerrit-Reviewer: Robert Vogel <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to