Commit c10b6bf
razvan
fix: use CountAllFiles for accurate on_disk metrics in index_status.json
The Progress callback received totalFiles = len(changedFiles), which only
counts modified files needing re-indexing. This was incorrectly assigned
to OnDisk, causing on_disk: 1 when only 1 file changed — despite 232 Go
files and 655 docs on disk.
Fix:
- Call CountAllFiles() once before the language loop for real disk totals
- Pre-populate index_status.json with on_disk counts at indexing start
- Use diskTotal (pre-counted) for OnDisk, totalFiles for Changed
- Languages with 0 changed files now correctly show their disk totals1 parent 5198fe5 commit c10b6bf
1 file changed
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
888 | 888 | | |
889 | 889 | | |
890 | 890 | | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
891 | 913 | | |
892 | 914 | | |
| 915 | + | |
893 | 916 | | |
894 | | - | |
| 917 | + | |
895 | 918 | | |
896 | 919 | | |
897 | 920 | | |
| |||
904 | 927 | | |
905 | 928 | | |
906 | 929 | | |
907 | | - | |
908 | | - | |
| 930 | + | |
| 931 | + | |
909 | 932 | | |
910 | 933 | | |
911 | 934 | | |
| |||
0 commit comments