Skip to content

[release] snapshots: fix filesByRange (#9472) (#9488)#9493

Closed
yperbasis wants to merge 1 commit intorelease/2.58from
cherry_pick_9488
Closed

[release] snapshots: fix filesByRange (#9472) (#9488)#9493
yperbasis wants to merge 1 commit intorelease/2.58from
cherry_pick_9488

Conversation

@yperbasis
Copy link
Copy Markdown
Member

Cherry pick PR #9488

The method was iterating over snapshots.segments.Min().segments, but
passing the index to view.Segments().

This might lead to a crash, because those 2 collections are different,
and the indexes might not match.

view.Segments() only contains the snapshot files that are fully
downloaded and indexed.

The code is changed to only use the view files (as it was before).
@yperbasis
Copy link
Copy Markdown
Member Author

Closing as duplicate of PR #9489

@yperbasis yperbasis closed this Feb 22, 2024
@yperbasis yperbasis deleted the cherry_pick_9488 branch March 20, 2024 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants