From e1af5dc5a50049a2333e92067cdb600d548b8d7c Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 10 Oct 2026 23:51:34 +0800 Subject: [PATCH] mount: restart the rename fallback's silence bound after each event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bound covers the wait for the next response, not the rename's whole lifetime — a healthy rename that keeps sending events can outlast it. Re-arm after each handled event; the defer-while-handling stays for local work that outlasts the interval on its own. --- weed/mount/weedfs_rename.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weed/mount/weedfs_rename.go b/weed/mount/weedfs_rename.go index 6285fe7fb6..cd0ae361b1 100644 --- a/weed/mount/weedfs_rename.go +++ b/weed/mount/weedfs_rename.go @@ -72,6 +72,9 @@ func (wfs *WFS) doRename(ctx context.Context, request *filer_pb.StreamRenameEntr if err != nil { return err } + // The event just proved the filer alive; the bound covers the + // wait for the next one, not the whole rename. + silence.Reset(wfs.filerRPCWait()) } return nil })