From 46a09a81fe5084a5d031bac181a5cbb26795c718 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 10 Jan 2025 13:16:58 +0300 Subject: [PATCH] Terminate fdirsync loop when "." is reached in replicate-changesets --- .../planet/files/default/replication-bin/replicate-changesets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5