Commit 6bafc50
db/state: reset reader on recsplit collision retry in SimpleAccessorBuilder (#20886)
Adds `iidq.reader.Reset(0)` at the top of the retry loop in
`SimpleAccessorBuilder.Build`, matching `buildVI` (5c7fe1b) and
`buildHashMapAccessor`. Without it, retry iterations start with an
exhausted `PagedReader` and feed zero keys to recsplit, producing a
corrupt accessor index for forkable snapshots (headers/bodies).
---------
Co-authored-by: Alexey Sharov <AskAlexSharov@gmail.com>
Co-authored-by: moskud <sudeepdino008@gmail.com>1 parent fe92da2 commit 6bafc50
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
267 | 273 | | |
268 | 274 | | |
269 | 275 | | |
| |||
0 commit comments