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

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
pull/12622/head
Philipp 2023-01-06 12:42:43 +01:00 zatwierdzone przez GitHub
rodzic b3772163d8
commit 9462bfa763
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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