Skip to content

Commit 931fe35

Browse files
bug symfony#25337 Remove Exclusive Lock That Breaks NFS Caching (brianfreytag)
This PR was merged into the 3.4 branch. Discussion ---------- Remove Exclusive Lock That Breaks NFS Caching | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#25336 | License | MIT | Doc PR | n/a symfony#24960 introduced an issue with NFS mounts that do not support exclusive locks. This reverts that change. FYI @kalessil Commits ------- a7ac100 Remove LOCK_EX That Breaks Cache Usage on NFS
2 parents 22a6a7e + a7ac100 commit 931fe35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ public function setClassCache(array $classes)
423423
*/
424424
public function setAnnotatedClassCache(array $annotatedClasses)
425425
{
426-
file_put_contents(($this->warmupDir ?: $this->getCacheDir()).'/annotations.map', sprintf('<?php return %s;', var_export($annotatedClasses, true)), LOCK_EX);
426+
file_put_contents(($this->warmupDir ?: $this->getCacheDir()).'/annotations.map', sprintf('<?php return %s;', var_export($annotatedClasses, true)));
427427
}
428428

429429
/**

0 commit comments

Comments
 (0)