Commit e061c55
authored
feat: clamp zero I/O concurrency (#6332)
This PR adds a small safety guard in FileSegmentSource::open(): if
VortexReadAt::concurrency() returns 0, we log a warning and clamp it to
1. This avoids potential stalls or panics from calling
buffer_unordered(0) while keeping normal behavior unchanged for valid
concurrency values.
Signed-off-by: cancaicai <2356672992@qq.com>1 parent 86207d0 commit e061c55
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
0 commit comments