From: Aaron Schulz Date: Wed, 28 Feb 2018 23:54:57 +0000 (-0800) Subject: Switch Block::purgeExpired to use AutoCommitUpdate X-Git-Tag: 1.31.0-rc.0~396^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=f6d1dae3f82a9172fe71726ce4532ad0692aaaed;p=lhc%2Fweb%2Fwiklou.git Switch Block::purgeExpired to use AutoCommitUpdate This can slightly lower contention by reducing transaction time. Change-Id: I8963d89ae8a28dee50c40ff411cd562331c9c316 --- diff --git a/includes/Block.php b/includes/Block.php index 4e878d1045..2bae13b777 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -1134,7 +1134,7 @@ class Block { return; } - DeferredUpdates::addUpdate( new AtomicSectionUpdate( + DeferredUpdates::addUpdate( new AutoCommitUpdate( wfGetDB( DB_MASTER ), __METHOD__, function ( IDatabase $dbw, $fname ) {