Commit 424eedb
committed
Indexing: Fix lost scan metadata and stuck status
- Reset `expected_total_entries` to 0 after `ComputeAllAggregates` in the writer. Without this, micro-scan `InsertEntriesV2` batches emitted spurious `saving_entries` progress events that re-triggered the aggregation overlay permanently (no matching `index-aggregation-complete` followed).
- Move `scan_completed_at` and other meta writes before the reconciler replay in `mod.rs`. The replay can fail (e.g. "database is locked") and cause an early return, which previously skipped persisting `scan_completed_at` — causing a full rescan on every subsequent startup.1 parent 7551df2 commit 424eedb
2 files changed
+29
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
611 | 636 | | |
612 | 637 | | |
613 | 638 | | |
| |||
665 | 690 | | |
666 | 691 | | |
667 | 692 | | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | 693 | | |
691 | 694 | | |
692 | 695 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
636 | 638 | | |
| 639 | + | |
637 | 640 | | |
638 | 641 | | |
639 | 642 | | |
| |||
0 commit comments