mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 04:16:24 -05:00
Two review points, both correct. The planning session was opened before the filesystem collection that runs inside it, so BEGIN IMMEDIATE held the write lock across every glob and directory walk - trading an instant abort for minutes of global write starvation on a large channel. The collection now finishes before the session opens; only the temp-table load, the FileGroup reads and inserts, and the commit run under the lock. `file_source_set` is built during that same pass instead of re-globbing every file source a second time. `test_file_worker_move_survives_concurrent_writer` held the lock across the whole move, so planning waited it out and the execute phase usually met no contention - the test would have stayed green if only the execute site regressed. It now takes the lock after planning returns. Verified by mutation: reverting either site alone fails its own test. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test | ||
| __init__.py | ||
| api.py | ||
| downloader.py | ||
| indexers.py | ||
| lib.py | ||
| models.py | ||
| schema.py | ||
| worker.py | ||