Repository navigation
Dev + production daemons can now run concurrently against the same shared SQLite DB with no busy_timeout/retry - #1485
Conversation
…t daemon writes (closes #1483) #1469 scoped daemon sockets/labels by build variant, which made it possible for a dev and production daemon to run concurrently against the shared SQLite DB. Without busy_timeout, a write from one process while the other holds the write lock fails immediately with SQLITE_BUSY instead of retrying. Setting busy_timeout = 5000ms (applied per-connection, since it's not persisted in the DB file) makes the second writer wait for the lock instead of erroring. Co-Authored-By: Claude <[email protected]>
Code Review SummarySmall, well-scoped fix that does exactly what issue #1483 asked for: one PRAGMA line plus a regression test proving it works. I verified the placement, the per-connection PRAGMA execution path, and ran the new test 5x standalone (~0.23-0.25s each, consistent) — no flakiness observed. This is a net positive, low-risk change. Approving. FindingsCritical IssuesNone. Suggested Improvements
Nitpicks
Verification Performed
|
malibio
left a comment
There was a problem hiding this comment.
Reviewed — approving in substance (see detailed comment above); GitHub blocks self-approval on this PR since author == reviewer account.
Closes #1483