Repository navigation
Commit edf33d8
fix(server): cleanup's thread snapshot read runs on the reader worker
The one full snapshot read left in each sweep blocked the event loop on
the main SQLite connection. On a 3.8 GB database that froze the server
for about 2 seconds per sweep. Mark it readOnly so it runs on the
reader worker, as ThreadPullRequestService already does. The recheck
under each worktree's lease does not use this read, so it still sees
the writer's latest state. Taken from #19421.
Co-Authored-By: Claude Opus 5.5 <[email protected]>1 parent 692b1fa commit edf33d8
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| 255 | + | |
| 256 | + | |
254 | 257 | | |
255 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
256 | 261 | | |
257 | 262 | | |
258 | 263 | | |
| |||
0 commit comments