From 0b5ff6454a2ae32d88bf907dac9ee3937f59e0fd Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 19 Apr 2018 11:43:09 -0700 Subject: [PATCH] Make getScopedLockAndFlush() in Category::refreshCounts non-blocking Change-Id: I675ec38e064f57a4e960b3934c472833a945b695 --- includes/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Category.php b/includes/Category.php index 9241730a04..6104b8a65a 100644 --- a/includes/Category.php +++ b/includes/Category.php @@ -328,7 +328,7 @@ class Category { $dbw = wfGetDB( DB_MASTER ); # Avoid excess contention on the same category (T162121) $name = __METHOD__ . ':' . md5( $this->mName ); - $scopedLock = $dbw->getScopedLockAndFlush( $name, __METHOD__, 1 ); + $scopedLock = $dbw->getScopedLockAndFlush( $name, __METHOD__, 0 ); if ( !$scopedLock ) { return false; } -- 2.20.1