HomePhabricator

Prune: Support noncontiguous block files
c257a8c9a639Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Prune: Support noncontiguous block files

In some corner cases, it may be possible for recent blocks to end up in
the same block file as much older blocks. Previously, the pruning code
would stop looking for files to remove upon first encountering a file
containing a block that cannot be pruned, now it will keep looking for
candidate files until the target is met and all other criteria are
satisfied.

This can result in a noncontiguous set of block files (by number) on
disk, which is fine except for during some reindex corner cases, so
make reindex preparation smarter such that we keep the data we can
actually use and throw away the rest. This allows pruning to work
correctly while downloading any blocks needed during the reindex.

Details

Provenance
Adam Weiss <adam@signal11.com>Authored on Jun 2 2015, 19:24
deadalnixPushed on May 14 2017, 22:04
Parents
rABCf00b62391b93: Merge pull request #6203
Branches
Unknown
Tags
Unknown

Event Timeline

Adam Weiss <adam@signal11.com> committed rABCc257a8c9a639: Prune: Support noncontiguous block files (authored by Adam Weiss <adam@signal11.com>).Jun 3 2015, 17:25