mirror of
https://github.com/friendica/friendica
synced 2024-11-10 08:22:57 +00:00
Update src/Core/Config/Util/ConfigFileManager.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
b3772163d8
commit
9462bfa763
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ class ConfigFileManager
|
|||
if (flock($configStream, LOCK_EX)) {
|
||||
|
||||
/**
|
||||
* If the file exists, read the whole file again
|
||||
* If the file exists, we read the whole file again to avoid a race condition with concurrent threads that could have modified the file between the first config read of this thread and now
|
||||
* Since we're currently exclusive locked, no other process can now change the config again
|
||||
*/
|
||||
if ($fileExists) {
|
||||
|
|
Loading…
Reference in a new issue