Update src/Core/Config/Util/ConfigFileManager.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Philipp 2023-01-06 12:42:43 +01:00 committed by GitHub
parent b3772163d8
commit 9462bfa763
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {