-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ipfs block rm
doesn't notify of a non-existing key
#5040
Comments
@schomatis this could be related to the datastore. What datastore are you using? |
Thanks @kevina, this is indeed related to the datastore, in fact I was making some tests for Badger when I realize this command wasn't behaving as expected (the |
Probably because Badger doesn't return an error when you try to remove a non-existent key... |
Yes, a delete in Badger is just another entry marking the key as deleted (so future |
Related to: ipfs/go-ds-flatfs#30 If we really want to avoid breaking the API, we can add a |
Yes, as I mentioned before, I had some concerns about performance.
@Stebalien WDYT? |
If I could start over, I would have made
This won't slow down GC as GC doesn't use RmBlocks. It technically changes the datastore interface however, I'm pretty sure this change is more likely to fix bugs than it is to cause them. If a user really needs to rapidly delete blocks via the |
Delete is now idempotent by default. We've fixed (slightly race but not the end of the world). |
This is the case even if turning off the
force
flag (which I think is off by default so I am definitely missing something here).The text was updated successfully, but these errors were encountered: