1 Commits

Author SHA1 Message Date
RRFZ
953a6106f5 fix(co_writer): stop the Windows write lock file growing on every save
CoWriterStorage.locked() is taken by every document save, note-thread
change, proposal and review. Its Windows branch appended b"0" to the
append-mode .write.lock file before each msvcrt lock, so the file grew
by one byte per acquisition (1,000 saves: 1,000 bytes) and never shrank.

Write the byte only when the file is empty, as the other msvcrt locks
in the codebase do.
2026-10-31 22:25:42 -04:00