refactor: Add FlatFileSeq member variables in BlockManager #30517

pull TheCharlatan wants to merge 1 commits into bitcoin:master from TheCharlatan:flatfileseqmember changing 4 files +20 −28
  1. TheCharlatan commented at 7:48 am on July 24, 2024: contributor

    Instead of constructing a new class every time a file operation is done, construct them once for each of the undo and block file when a new BlockManager is created.

    In future, this might make it easier to introduce an abstract block store.

    Historically, this was not easily possible prior to #27125.

  2. refactor: Add FlatFileSeq member variables in BlockManager
    Instead of constructing a new class every time a file operation is done,
    construct them once for each of the undo and block file when a new
    BlockManager is created.
    
    In future, this might make it easier to introduce an abstract block
    store.
    7aa8994c6f
  3. DrahtBot commented at 7:48 am on July 24, 2024: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage

    For detailed information about the code coverage, see the test coverage report.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK danielabrozzoni, tdb3, stickies-v, brunoerg
    Concept ACK dergoegge

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #30342 (kernel, logging: Pass Logger instances to kernel objects by ryanofsky)
    • #29700 (kernel, refactor: return error status on all fatal errors by ryanofsky)
    • #28052 (blockstorage: XOR blocksdir *.dat files by maflcko)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  4. DrahtBot added the label Refactoring on Jul 24, 2024
  5. dergoegge commented at 8:20 am on July 24, 2024: member
    Concept ACK
  6. danielabrozzoni commented at 11:39 am on July 24, 2024: contributor
    ACK 7aa8994c6fceae5cf8fb7e661371cdb19d2cb482
  7. DrahtBot requested review from dergoegge on Jul 24, 2024
  8. tdb3 approved
  9. tdb3 commented at 12:29 pm on July 24, 2024: contributor
    ACK 7aa8994c6fceae5cf8fb7e661371cdb19d2cb482
  10. stickies-v approved
  11. stickies-v commented at 6:55 pm on July 25, 2024: contributor

    ACK 7aa8994c6fceae5cf8fb7e661371cdb19d2cb482

    Straightforward improvement to avoid unnecessary initializations, makes sense on its own - even without potential future improvements as per PR description.

  12. brunoerg approved
  13. brunoerg commented at 9:36 pm on July 25, 2024: contributor
    utACK 7aa8994c6fceae5cf8fb7e661371cdb19d2cb482
  14. fanquake merged this on Jul 26, 2024
  15. fanquake closed this on Jul 26, 2024


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 06:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me