- Flush buffered stats in the worker shutdown hook. Fixes issue where recycled workers might drop some writes.
- Store the
FileLockfd per-thread. Under thread contention the shared fd was clobbered and released by the wrong thread, leaking a held flock and wedging every process using that storage path.FileHueywith the default thread workers deadlocked on first contention.
