-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[DB] DB Pruner refactoring and add transaction pruner #212
Conversation
✔️ Deploy Preview for aptos-developer-docs ready! 🔨 Explore the source changes: 7e627c4 🔍 Inspect the deploy log: https://app.netlify.com/sites/aptos-developer-docs/deploys/6232caf3a4e919000920f8a7 😎 Browse the preview: https://deploy-preview-212--aptos-developer-docs.netlify.app |
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.
Nice.
And we need to fix
aptos-core/storage/aptosdb/src/lib.rs
Line 808 in 1521a7e
fn get_first_txn_version(&self) -> Result<Option<Version>> { |
(link was wrong on the issue, sorry)
cc @JoshLind
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.
Please give it another round. Many things can be separate follow up PRs, just comment on those you want to delay to the next PR. :)
@msmouse - Addressed majority of the review comments - PTAL. |
/canary |
Forge run: https://circleci.com/gh/aptos-labs/aptos-core/4501 |
☀️ Canary successful |
/land |
Closes: aptos-labs#212
Forge run: https://circleci.com/gh/aptos-labs/aptos-core/4535 |
Motivation
This is the PR for supporting ledger history pruning. See #103 for more details. Following changes have been added.
Refactoring the existing pruner, so that we can add support for more pruner in next diff.
Implementation of transaction pruner, which prunes all transaction-related data from DB before a certain version
Test Plan
Added UTs for testing the pruner.