Commit b0b7ae9
committed
bug #47497 [Bridge] Fix mkdir() race condition in ProxyCacheWarmer (andrey-tech)
This PR was merged into the 4.4 branch.
Discussion
----------
[Bridge] Fix mkdir() race condition in ProxyCacheWarmer
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix [#47489](#47489)
| License | MIT
| Doc PR | -
The race condition is appears when several processes are attempting to create a same Doctrine Proxy directory which does not yet exist and `\RuntimeException` is thrown in `\Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer`.
This PR adds an extra check to `\Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer`.
Commits
-------
cdb6c15 [Bridge] Fix mkdir() race condition in ProxyCacheWarmer1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments