Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be8cbd2

Browse filesBrowse files
[Cache] Don't lock when doing nested computations
1 parent 9d8638c commit be8cbd2
Copy full SHA for be8cbd2

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Cache/LockRegistry.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/LockRegistry.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static function compute(callable $callback, ItemInterface $item, bool &$s
8888

8989
$key = self::$files ? abs(crc32($item->getKey())) % \count(self::$files) : -1;
9090

91-
if ($key < 0 || (self::$lockedFiles[$key] ?? false) || !$lock = self::open($key)) {
91+
if ($key < 0 || self::$lockedFiles || !$lock = self::open($key)) {
9292
return $callback($item, $save);
9393
}
9494

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.