-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[resharding] GC trie state and flat state after resharding (#10137)
This PR plugs into the Garbage Collection (GC) code to cleanup trie state and flat state after a resharding event. During GC, when we are clearing the last block of the epoch when resharding happens, we can also go ahead and clean up state from the parent shards. More context on GC: https://near.github.io/nearcore/architecture/how/gc.html We use the functions introduced in PR #10136 to clear the trie cache as well as delete the flat storage and set flat storage status as empty.
- Loading branch information
Shreyan Gupta
authored
Nov 9, 2023
1 parent
8830d10
commit 3324d96
Showing
5 changed files
with
138 additions
and
3 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
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
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
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
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