mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-27 13:40:37 +00:00
On Windows, two threads/processes racing to create a not-yet-existing lock file with an append open can transiently fail on open() itself with PermissionError (EACCES), before the byte-range lock is ever attempted. The open was outside the retry loop, so the error surfaced from load()/save() instead of being retried. Move the open inside the loop and close the handle on any OSError before retrying.