-
Notifications
You must be signed in to change notification settings - Fork 184
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
fix(iroh-blobs): unconditionally delete blobs #2692
Conversation
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/2692/docs/iroh/ Last updated: 2024-09-03T14:34:25Z |
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.
Not a big fan of multiple callbacks that return futures. But then again this wasn't exactly beautiful before either...
iroh-blobs/src/store/fs.rs
Outdated
@@ -627,6 +630,11 @@ pub(crate) enum ActorMessage { | |||
hashes: Vec<Hash>, | |||
tx: oneshot::Sender<ActorResult<()>>, | |||
}, | |||
/// Modification method: try to delete the data for a number of hashes |
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.
This docs should probably say that GcDelete is not "force delete".
@@ -2253,7 +2371,11 @@ impl ActorState { | |||
tx.send(res).ok(); | |||
} | |||
ActorMessage::Delete { hashes, tx } => { |
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.
I would have just added the force flag to the Delete message, but this works as well...
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.
Not a big fan of multiple callbacks that return futures. But then again this wasn't exactly beautiful before either...
Store::delete
Breaking Changes
Store::gc_sweep
Store::gc_mark
Store::gc_start
Store::gc_run
which starts the full gc scheduleCloses #2657