From 9462bfa763b67cb937e2d426095ff192654bc234 Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 6 Jan 2023 12:42:43 +0100 Subject: [PATCH] Update src/Core/Config/Util/ConfigFileManager.php Co-authored-by: Hypolite Petovan --- src/Core/Config/Util/ConfigFileManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Config/Util/ConfigFileManager.php b/src/Core/Config/Util/ConfigFileManager.php index cdef2dd699..c7e63a63b0 100644 --- a/src/Core/Config/Util/ConfigFileManager.php +++ b/src/Core/Config/Util/ConfigFileManager.php @@ -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) {