Commit 9a373e6
committed
btdu.state: Fix sharing group linkage for duplicate browser paths
Split the sharing group linking loop into two passes to handle duplicate
browser paths correctly:
- First pass sets the next pointer for ALL pathData entries, including
duplicates, because getNext uses findIndex which may return any
matching index
- Second pass updates firstSharingGroup only for unique browser paths
This prevents incorrect linkage when the same browser path appears
multiple times in a sharing group's pathData, which can happen when
the same extent is used by the same file multiple times.1 parent 902bba0 commit 9a373e6
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
561 | 564 | | |
562 | | - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
563 | 572 | | |
564 | 573 | | |
565 | 574 | | |
| |||
0 commit comments