]> git.mxchange.org Git - friendica.git/commitdiff
Update src/Core/Config/Util/ConfigFileManager.php
authorPhilipp <admin+Github@philipp.info>
Fri, 6 Jan 2023 11:42:43 +0000 (12:42 +0100)
committerGitHub <noreply@github.com>
Fri, 6 Jan 2023 11:42:43 +0000 (12:42 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Core/Config/Util/ConfigFileManager.php

index cdef2dd699d97bba725ce1161e56a0adaa12e471..c7e63a63b036f4fd63d0acdd8790da1b544edf82 100644 (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) {