-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Removes old accounts hash cache dir #32604
Removes old accounts hash cache dir #32604
Conversation
Codecov Report
@@ Coverage Diff @@
## master #32604 +/- ##
=========================================
- Coverage 82.0% 82.0% -0.1%
=========================================
Files 781 781
Lines 210801 210813 +12
=========================================
- Hits 172959 172947 -12
- Misses 37842 37866 +24 |
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.
lgtm, thanks!
// The accounts hash cache dir was renamed, so cleanup the old dir if it exists. | ||
let old_accounts_hash_cache_dir = ledger_path.join("calculate_accounts_hash_cache"); | ||
if old_accounts_hash_cache_dir.exists() { | ||
snapshot_utils::move_and_async_delete_path(old_accounts_hash_cache_dir); |
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.
unrelated: logic in here looks a little suspect 🤔
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.
💯
(cherry picked from commit 36b3722)
(cherry picked from commit 36b3722)
Removes old accounts hash cache dir (#32604) (cherry picked from commit 36b3722) Co-authored-by: Brooks <[email protected]>
Problem
The directory that caches the result from accounts hash calculation was renamed in #29734. This required manual intervention on the part of node operators to remove the old cache directory. While it was harmless, the old directory did take up disk space. It should be cleaned up automatically.
Summary of Changes
Remove the old cache dir, if it exists.