Commit fbe4e54
committed
fix: self-healing should only trigger on ENOENT, not all fs errors
fs.access() throws for permission errors, NFS timeouts, and other
transient I/O failures — not just missing files. The catch-all was
incorrectly deleting DB records for files that exist but are
temporarily inaccessible. Now only ENOENT triggers cleanup.1 parent f2fc76b commit fbe4e54
1 file changed
Lines changed: 30 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
800 | 819 | | |
801 | | - | |
802 | 820 | | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
808 | | - | |
809 | | - | |
810 | | - | |
811 | | - | |
| 821 | + | |
| 822 | + | |
812 | 823 | | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | 824 | | |
817 | 825 | | |
818 | 826 | | |
| |||
0 commit comments