mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
* fix(memory): keep database locks owned during long writes * fix(memory): recover stale database lock artifacts * fix(memory): fall back to exclusive locks on EXDEV * fix(memory): five-minute lease overrides a live-looking PID (#4738) Review items 1 and 2 on #4822: - A lock or guard not renewed for five minutes is taken over even when its PID answers, covering PID reuse and pre-reboot locks on hosts without a boot id. Inside the lease only a provably dead owner is taken over. - removeExpiredMemoryDbLockFile no longer waits out the lease for a guard or candidate whose owner is provably dead. Tests: PID-reuse recovery for the lock and the guard, early removal of a dead reclaimer's guard; the live-owner tests now run inside the lease. Co-Authored-By: RuFlo <ruv@ruv.net> --------- Co-authored-by: rUv <ruv@ruv.net> Co-authored-by: r <r@x>