You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The verifier fired during cold-start replay, causing two failures: `upsert_dir_stats_by_id` hit "cannot start a transaction within a transaction" (replay's `BEGIN IMMEDIATE` was active), and `scan_subtree` couldn't see uncommitted writes via WAL isolation. Result: dirs created without `dir_stats` rows → wrong sizes.
- Set `scanning = true` at the top of `resume_or_scan()` so the verifier is suppressed during both replay and full scan, not just full scan
- Reset `scanning = false` after `run_replay_event_loop` returns (live mode starts)
- Replace `unchecked_transaction()` with named savepoints (`SAVEPOINT`/`RELEASE`) in `insert_entries_v2_batch` and `upsert_dir_stats_by_id` — savepoints nest correctly inside explicit transactions, unlike `BEGIN` which fails
0 commit comments