mirror of
https://github.com/storytold/autocraft.git
synced 2026-12-01 10:33:55 +01:00
writePage builds its rows before the lock and writes a page in a fixed number of multi-row statements instead of several statements per item and comment. Write transactions can take a named lock in place of the writer lock; a lease takes its login's lock. The Task Runner handle's lone writes (heartbeat, status, token use, the liveness stamp) run under their row locks only. The liveness stamp is one conditional UPDATE unless it went stale. The main-CI poll is checked every 30 seconds during a sync run, on a client of its own.