From bc97217591c0fdf8726831febdbec7b1a50dbbeb Mon Sep 17 00:00:00 2001 From: chrislusf Date: Sun, 25 Oct 2026 14:10:06 -0700 Subject: [PATCH] filer: reflow the replay-lock comment --- weed/filer/meta_replay.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/weed/filer/meta_replay.go b/weed/filer/meta_replay.go index e51c5d9a06..ebcf73ad84 100644 --- a/weed/filer/meta_replay.go +++ b/weed/filer/meta_replay.go @@ -350,10 +350,11 @@ func (f *Filer) replayBlockedByLocal(ctx context.Context, path util.FullPath, ts // delete record an older build left, or the ancestor entry itself: a local // recursive delete or directory rename holds only the ancestor's lock, and // without contending on it a replay could reinsert a stale child into a -// subtree being deleted after its check. Ancestors are locked shared — they only need to exclude an -// exclusive holder, not each other, or every replay under a busy parent -// would serialize — while a path the event actually changes stays exclusive -// even when it is also the other path's ancestor. The root is never locked: +// subtree being deleted after its check. Ancestors are locked shared — +// they only need to exclude an exclusive holder, not each other, or every +// replay under a busy parent would serialize — while a path the event +// actually changes stays exclusive even when it is also the other path's +// ancestor. The root is never locked: // it cannot be deleted, and a shared root lock would still be excluded by // every top-level delete. func (f *Filer) lockReplayPaths(oldPath, newPath util.FullPath) func() {