Thirty-Two Connections and an Empty File: A Race in Turso's Page-1 Allocation
Why concurrent first writes to an empty database could panic Turso, and the fix.
ePHPm runs PHP inside a Rust server. For SQLite-style databases it uses Turso, a rewrite of SQLite in Rust that is still labeled beta. I recently hammered ePHPm’s per-site mode with brand-new sites. A burst of first requests to a new site could panic inside the engine. This post is about where that panic came from and how to fix it. How Turso got into ePHPm is in Clustered SQLite, Part 2.
