From f6d1dae3f82a9172fe71726ce4532ad0692aaaed Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 28 Feb 2018 15:54:57 -0800 Subject: [PATCH 1/1] Switch Block::purgeExpired to use AutoCommitUpdate This can slightly lower contention by reducing transaction time. Change-Id: I8963d89ae8a28dee50c40ff411cd562331c9c316 --- includes/Block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1