https://bugzilla.wikimedia.org/show_bug.cgi?id=35357

--- Comment #4 from Marcin Cieślak <[email protected]> 2012-03-30 
00:23:13 UTC ---

From
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/LocalisationCache.php;h=a50bf0d8a8eed739b78ff401f70d24246b6da024;hb=a358f21ffe39ce7c76a27300aa8002108399d331#l912

 910                 $this->dbw = wfGetDB( DB_MASTER );
 911                 try {
 912                         $this->dbw->begin( __METHOD__ );
 913                         $this->dbw->delete( 'l10n_cache', array( 'lc_lang'
=> $code ), __METHOD__ );
 914                 } catch ( DBQueryError $e ) {
 915                         if ( $this->dbw->wasReadOnlyError() ) {
 916                                 $this->readOnly = true;
 917                                 $this->dbw->rollback( __METHOD__ );
 918                                 $this->dbw->ignoreErrors( false );
 919                                 return;
 920                         } else {
 921                                 throw $e;
 922                         }
 923                 }

Yes, we try to open a new transaction (this begin will be a no-op on PostgreSQL
if and there is nothing committed at the end. I don't really understand why it
is necessary to have manual transaction control here. MySQL deadlocks?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to