Commit a61376d
committed
Bugfix: Indexing won't start on fresh DB
(Caused by our recent changes)
`resume_or_scan()` set `scanning = true` early to suppress the verifier during startup, but `start_scan()` then rejected with "Scan already running" because its guard checks the same flag before setting it.
- Move the early `scanning = true` from `resume_or_scan()` into `start_replay()` — the only path that doesn't go through `start_scan()`
- `start_scan()` still sets the flag itself, so both paths are covered
- The fallback-from-replay and manual-start paths work correctly because `scanning` is `false` when they call `start_scan()`1 parent 77ebaa0 commit a61376d
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | 269 | | |
275 | 270 | | |
276 | 271 | | |
| |||
379 | 374 | | |
380 | 375 | | |
381 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
382 | 381 | | |
383 | 382 | | |
384 | 383 | | |
| |||
0 commit comments