X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FDeferredUpdates.php;h=89c4df68f8df7966b7445836373cbe6d0d2c1e55;hb=af94bc9c69db033c7308192b42a47a4f27e25878;hp=b4989a69976d2b75e4cf53a7a36e12edd950e3cf;hpb=21238992a5d8e8a2dab47568f2d1b3c930347ac8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/DeferredUpdates.php b/includes/DeferredUpdates.php index b4989a6997..89c4df68f8 100644 --- a/includes/DeferredUpdates.php +++ b/includes/DeferredUpdates.php @@ -34,7 +34,7 @@ interface DeferrableUpdate { } /** - * Class for mananging the deferred updates. + * Class for managing the deferred updates. * * @since 1.19 */ @@ -66,7 +66,7 @@ class DeferredUpdates { /** * Do any deferred updates and clear the list * - * @param $commit String: set to 'commit' to commit after every update to + * @param string $commit set to 'commit' to commit after every update to * prevent lock contention */ public static function doUpdates( $commit = '' ) { @@ -92,7 +92,7 @@ class DeferredUpdates { $update->doUpdate(); if ( $doCommit && $dbw->trxLevel() ) { - $dbw->commit( __METHOD__ ); + $dbw->commit( __METHOD__, 'flush' ); } } catch ( MWException $e ) { // We don't want exceptions thrown during deferred updates to