Commit 26785fc
committed
Indexing: Fix post-scan reconciler "DB is locked"
- The replay connection was opened with `open_write_connection`, contending with the writer thread's exclusive write lock in WAL mode
- Changed to `open_read_connection` — the reconciler only reads (path resolution), all writes go through the writer channel
- This also prevented `scan_completed_at` from being persisted (early return on error), causing a full rescan on every restart1 parent 795e48b commit 26785fc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
625 | | - | |
| 625 | + | |
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| |||
0 commit comments