Thanks to visit codestin.com
Credit goes to github.com

Skip to content

snapshots: fix filesByRange (#9472)#9489

Merged
yperbasis merged 1 commit into
release/2.58from
pr/snapshots_merge_fix_rel
Feb 22, 2024
Merged

snapshots: fix filesByRange (#9472)#9489
yperbasis merged 1 commit into
release/2.58from
pr/snapshots_merge_fix_rel

Conversation

@battlmonstr

Copy link
Copy Markdown
Contributor

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).

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 yperbasis merged commit f12e451 into release/2.58 Feb 22, 2024
@yperbasis yperbasis deleted the pr/snapshots_merge_fix_rel branch February 22, 2024 11:44
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