mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 02:27:26 +01:00
mount: restart the rename fallback's silence bound after each event
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.
This commit is contained in:
1 parent
249999a3bb
commit
e1af5dc5a5
1 file changed
+3
@@ -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
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user