-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
snapshots: refactor SnapshotRepository #2056
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9d5fa80
extract SnapshotBundle
battlmonstr 0115278
simplify move_last_write_time to fix a compilation error
battlmonstr 5b89d01
replace find_xx_segment with a type param
battlmonstr 97818db
remove unused view_body_segments
battlmonstr a98d1e9
replace view_xx_segments with view_bundles
battlmonstr 1ce3309
remove view_bundles iteration counter
battlmonstr cf9a19b
move iterator_read_into_vector to common
battlmonstr cd2f83f
MapValuesView
battlmonstr 788ceb4
replace view_bundles with an iterator-based approach
battlmonstr 9deef44
replace for_each_xx with for loops
battlmonstr fb1688f
find_block_number: query object
battlmonstr a1f4bea
use std::views::values instead of MapValuesView if available
battlmonstr 8c04d42
snapshot_type.hpp
battlmonstr 3febd9e
refactor queries to take SnapshotAndIndex
battlmonstr 55a1d61
remove an extra reserve
battlmonstr e437b7e
SnapshotBundleFactory
battlmonstr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest moving this factory function into
snapshot_bundle_factory_impl.hpp
, so that we can use it everywhere and have a one-liner creation forSnapshotRepository
as below: