mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-29 01:34:29 +01:00
Session::begin locked the lease and could then return an error while checking or writing the record, before a Session existed. On those paths the lease file was dropped without unlocking, so a child process that was starting kept the lock held. The lock now lives in a Lease guard that unlocks on drop, and it covers the ended session and both error paths. New tests hold a copy of the handle while the record path is a folder and while the record cannot be written.