Commit 4d57a2f
committed
refactor(db): readRawJson distinguishes ENOENT (silent) from real I/O faults
Code-review follow-up: the blanket catch swallowed permission/EISDIR/corrupt-read
errors identically to the expected missing-file case. Branch on ENOENT (the
forward-safe NULL-column / old-row case, kept silent to avoid per-row noise) and
log any other read fault on a file that should exist. Also document in
writeRawJson that a write failure means the diag blob for that row is
unrecoverable (drawer degrades to empty, never errors).1 parent 43fbb7b commit 4d57a2f
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
60 | | - | |
61 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
62 | 74 | | |
63 | 75 | | |
64 | 76 | | |
| |||
0 commit comments