Commit 6db20ca
authored
Fix undefined array key in DeduplicationHandler with concurrent access (#2020)
When multiple requests write to the deduplication store file simultaneously,
partially written lines can be read by concurrent processes. This causes
'Undefined array key' errors when trying to destructure incomplete lines.
Changes:
- Skip incomplete/invalid lines in isDuplicate() instead of crashing
- Add LOCK_EX flag to file_put_contents() for atomic writes
Fixes #19501 parent 922bace commit 6db20ca
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
118 | 125 | | |
119 | 126 | | |
120 | 127 | | |
| |||
0 commit comments