Repository navigation
Commit ba08693
test(cli): close the legacy-session fixture's SQLite handle for real (#200)
addLegacySnapshotData prepared an INSERT and never finalized it, so
bun:sqlite's close() kept the connection open as a zombie (the -wal
file stays and another connection cannot take an exclusive lock). Its
deferred close and checkpoint can then run while the next aictrl run
opens the database, which fails at once with "database is locked"
because db.ts sets busy_timeout only after journal_mode. Finalize the
statement and close with throwOnError so a leaked statement fails loudly.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015nwvfUHdM3bgMgD9Zpz7Mj1 parent 7f5f35b commit ba08693
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | | - | |
| 186 | + | |
184 | 187 | | |
185 | 188 | | |
186 | 189 | | |
| |||
0 commit comments