From: Anton Khorev Date: Fri, 10 Jan 2025 10:16:58 +0000 (+0300) Subject: Terminate fdirsync loop when "." is reached in replicate-changesets X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/46a09a81fe5084a5d031bac181a5cbb26795c718 Terminate fdirsync loop when "." is reached in replicate-changesets --- diff --git a/cookbooks/planet/files/default/replication-bin/replicate-changesets b/cookbooks/planet/files/default/replication-bin/replicate-changesets index a57ca7659..0a6b4242d 100755 --- a/cookbooks/planet/files/default/replication-bin/replicate-changesets +++ b/cookbooks/planet/files/default/replication-bin/replicate-changesets @@ -127,7 +127,7 @@ end # sync a directory to guarantee it's on disk. have to recurse to the root # to guarantee sync for newly created directories. def fdirsync(d) - while d != "/" + while d != "/" && d != "." fsync(d) d = File.dirname(d) end