-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [MR-609] More eagerly remove replicated state at checkpoint hei…
…ghts (#906) Close [MR-609](https://dfinity.atlassian.net/browse/MR-609) After several preparation PRs manage to keep extra in-memory states required for pending CUP, `remove_inmemory_states_below` can now safely remove in-memory states at previous checkpoint heights. In order to do that, we separate `checkpoints_to_keep` and `inmemory_states_keep` in `remove_states_below_impl`. As a result, `snapshots` and `states_metadata` are not in sync anymore. We need to adjust some logic when updating them in state sync and `commit_and_certify`. [MR-609]: https://dfinity.atlassian.net/browse/MR-609?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
- Loading branch information
1 parent
91dd6b3
commit 52e0fac
Showing
2 changed files
with
298 additions
and
144 deletions.
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
Oops, something went wrong.