From: Aaron Schulz Date: Thu, 19 Apr 2018 18:43:09 +0000 (-0700) Subject: Make getScopedLockAndFlush() in Category::refreshCounts non-blocking X-Git-Tag: 1.31.0-rc.0~16^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=abb85b0abafa7d6920a4ac22538b4d0c541f7e02 Make getScopedLockAndFlush() in Category::refreshCounts non-blocking Change-Id: I675ec38e064f57a4e960b3934c472833a945b695 (cherry picked from commit 0b5ff6454a2ae32d88bf907dac9ee3937f59e0fd) --- 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; }