Commit 446277e
fix: Skip filepath checksum on insert when file exceeds size limit
When `filepath_checksum_size_limit` is set, skip checksum computation
for files larger than the limit during upload/insert. This prevents
transaction timeouts when inserting large files with filepath attributes.
The same config option was already used for download checksum skipping.
Now it applies to uploads as well.
When checksum is skipped:
- 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 446277e
1 file changed
+17
-5
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 | + | |
280 | 292 | | |
281 | 293 | | |
282 | 294 | | |
283 | 295 | | |
284 | 296 | | |
285 | | - | |
| 297 | + | |
286 | 298 | | |
287 | 299 | | |
288 | 300 | | |
| |||
291 | 303 | | |
292 | 304 | | |
293 | 305 | | |
294 | | - | |
| 306 | + | |
295 | 307 | | |
296 | 308 | | |
297 | 309 | | |
298 | 310 | | |
299 | | - | |
| 311 | + | |
300 | 312 | | |
301 | 313 | | |
302 | | - | |
| 314 | + | |
303 | 315 | | |
304 | 316 | | |
305 | 317 | | |
| |||
0 commit comments