Skip to content

Removes OldStoragesPolicy#6492

Merged
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:old-storages-policy
Jun 11, 2025
Merged

Removes OldStoragesPolicy#6492
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:old-storages-policy

Conversation

@brooksprumo
Copy link
Copy Markdown

@brooksprumo brooksprumo commented Jun 10, 2025

Problem

Now that skipping rewrites is enabled, ancient storages are also enabled. We no longer need special handling in clean for storages older than an epoch when we were doing rewrites.

Summary of Changes

Removes OldStoragesPolicy.

OldStoragesPolicy was originally added in #3737.

@brooksprumo brooksprumo self-assigned this Jun 10, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 10, 2025

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.8%. Comparing base (f8e81a9) to head (416e884).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6492   +/-   ##
=======================================
  Coverage    82.8%    82.8%           
=======================================
  Files         847      847           
  Lines      379702   379622   -80     
=======================================
+ Hits       314484   314486    +2     
+ Misses      65218    65136   -82     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@brooksprumo brooksprumo force-pushed the old-storages-policy branch from 983c760 to 416e884 Compare June 10, 2025 21:29
@brooksprumo brooksprumo marked this pull request as ready for review June 10, 2025 21:37
@brooksprumo brooksprumo requested review from HaoranYi and roryharr June 10, 2025 21:37
Copy link
Copy Markdown

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice cleanup. lgtm.


/// Returns how clean_accounts() should handle old storages
pub fn clean_accounts_old_storages_policy(&self) -> OldStoragesPolicy {
if self.are_ancient_storages_enabled() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are_ancient_storages_enabled is the next to clean up?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once rent collection is gone. It's too intertwined otherwise, imo. I've tried 3+ separate times and have given up each time.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😃 ok.

@brooksprumo brooksprumo merged commit 7d4946a into anza-xyz:master Jun 11, 2025
28 checks passed
@brooksprumo brooksprumo deleted the old-storages-policy branch June 11, 2025 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants