Skip to content

chore: use each prune segment method on remove_blocks_above#9568

Merged
joshieDo merged 2 commits into
mainfrom
joshie/unwindprune
Jul 17, 2024
Merged

chore: use each prune segment method on remove_blocks_above#9568
joshieDo merged 2 commits into
mainfrom
joshie/unwindprune

Conversation

@joshieDo
Copy link
Copy Markdown
Collaborator

@joshieDo joshieDo commented Jul 17, 2024

re #9553

there are a couple reasons to use the prune methods instead of truncate (and why its a private method):

  • cleaner
  • debug_asserts
  • it queues the pruning, doesn't actually delete anything until commit is called (truncate deletes on the spot)

@joshieDo joshieDo added A-db Related to the database A-static-files Related to static files labels Jul 17, 2024
@joshieDo joshieDo changed the title chore: use each prune segment method chore: use each prune segment method on remove_blocks_above Jul 17, 2024
Copy link
Copy Markdown
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pending @Rjected

@joshieDo joshieDo added this pull request to the merge queue Jul 17, 2024
Merged via the queue into main with commit 38bc7a1 Jul 17, 2024
@joshieDo joshieDo deleted the joshie/unwindprune branch July 17, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-db Related to the database A-static-files Related to static files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants