Commit 2ca9b86
committed
runtime, graph: fix VID collisions in ipfs.map() callbacks
Each ipfs.map() callback created a fresh BlockState with vid_seq reset
to RESERVED_VIDS. When multiple callbacks write to the same entity
table, they all generate vids starting at (block<<32)+100, producing
duplicates.
Fix by threading vid_seq through the callback loop and updating it in
EntityCache::extend() so the parent handler also continues from the
right sequence after merging callback results.
Addresses same underlying issue as PR #63361 parent eaac539 commit 2ca9b86
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
460 | 463 | | |
461 | 464 | | |
462 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
| 540 | + | |
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
563 | 568 | | |
564 | 569 | | |
565 | | - | |
| 570 | + | |
566 | 571 | | |
567 | 572 | | |
568 | 573 | | |
569 | 574 | | |
570 | 575 | | |
571 | 576 | | |
572 | 577 | | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
573 | 581 | | |
574 | 582 | | |
575 | 583 | | |
| |||
0 commit comments