Commit 83ade69
fix: Add separate config options for filepath checksum on insert vs fetch
Adds two new config options with fallback to the existing one:
- `filepath_checksum_size_limit_insert`: skip checksum computation on insert
- `filepath_checksum_size_limit_fetch`: skip checksum verification on fetch
- `filepath_checksum_size_limit`: fallback for both if specific ones not set
This allows teams to:
- Compute checksums on insert (for auditing) but skip verification on fetch
- Skip checksums entirely for large files
- Configure different size limits for insert vs fetch operations
When checksum is skipped on insert:
- A warning is logged
- contents_hash is stored as NULL
- Existing file verification is bypassed
Fixes #1386
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 5d644c9 commit 83ade69
2 files changed
+28
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
280 | 294 | | |
281 | 295 | | |
282 | 296 | | |
283 | 297 | | |
284 | 298 | | |
285 | | - | |
| 299 | + | |
286 | 300 | | |
287 | 301 | | |
288 | 302 | | |
| |||
291 | 305 | | |
292 | 306 | | |
293 | 307 | | |
294 | | - | |
| 308 | + | |
295 | 309 | | |
296 | 310 | | |
297 | 311 | | |
298 | 312 | | |
299 | | - | |
| 313 | + | |
300 | 314 | | |
301 | 315 | | |
302 | | - | |
| 316 | + | |
303 | 317 | | |
304 | 318 | | |
305 | 319 | | |
| |||
312 | 326 | | |
313 | 327 | | |
314 | 328 | | |
315 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
316 | 332 | | |
317 | 333 | | |
318 | 334 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
| |||
0 commit comments