X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24ze_article%22%29%20.%20%22?a=blobdiff_plain;f=includes%2Fdeferred%2FDeferredUpdates.php;h=2b2b2b784eeb00c581098cb0a95d80e1197e582b;hb=f9676b19503a72e70783966c5f748ef61277849b;hp=01dc27da824263de411375876221a3ee4fb7efe4;hpb=3642142dd08598c93ea595253f31d48ba501951e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/DeferredUpdates.php b/includes/deferred/DeferredUpdates.php index 01dc27da82..2b2b2b784e 100644 --- a/includes/deferred/DeferredUpdates.php +++ b/includes/deferred/DeferredUpdates.php @@ -228,9 +228,10 @@ class DeferredUpdates { private static function runUpdate( DeferrableUpdate $update, LBFactory $lbFactory, $stage ) { $guiError = null; try { - $lbFactory->beginMasterChanges( __METHOD__ ); + $fnameTrxOwner = get_class( $update ) . '::doUpdate'; + $lbFactory->beginMasterChanges( $fnameTrxOwner ); $update->doUpdate(); - $lbFactory->commitMasterChanges( __METHOD__ ); + $lbFactory->commitMasterChanges( $fnameTrxOwner ); } catch ( Exception $e ) { // Reporting GUI exceptions does not work post-send if ( $e instanceof ErrorPageError && $stage === self::PRESEND ) {