GNOME Bugzilla – Bug 733458
Fix two embarassing bugs in prune (via object enumeration)
Last modified: 2014-07-21 11:59:13 UTC
See attached.
Created attachment 281245 [details] [review] core: Do enumerate content objects in archive-z2 repositories Prune has worked fine on bare repositories for some time, but now that I finally try to delete data on the server side, I notice we weren't actually enumerating content objects =/ That caused them to not be pruned.
Created attachment 281246 [details] [review] core: Do enumerate ff/ objects as well An embarassing off-by-one here. I noticed we weren't pruning them.
Is it possible to have testcases for either of these?
Created attachment 281276 [details] [review] core: Do enumerate ff/ objects as well Now with test case. Verified it fails before the change too.
Review of attachment 281276 [details] [review]: 91-ostree.preset removed? Seems unrelated? The test case also looks like it's attached to the wrong commit. I don't see it testing 'ff' objects at all, only .filez ones.
(In reply to comment #5) > Review of attachment 281276 [details] [review]: > > 91-ostree.preset removed? Seems unrelated? > > The test case also looks like it's attached to the wrong commit. I don't see it > testing 'ff' objects at all, only .filez ones. It's testing both, because we're asserting that all objects are removed, including ff/ and including .filez.
Created attachment 281279 [details] [review] core: Do enumerate ff/ objects as well Updated patch without removing preset file.
Review of attachment 281279 [details] [review]: OK.
Attachment 281245 [details] pushed as 1834a71 - core: Do enumerate content objects in archive-z2 repositories Attachment 281279 [details] pushed as e392820 - core: Do enumerate ff/ objects as well