mirror of
https://github.com/project-zot/zot.git
synced 2026-06-15 20:07:55 +08:00
zot: run GC after manifest removal
Clients today expect the repo to clean up if there are unused blobs, not to manually delete things they think are unused. Let's do that, and use umoci's code to do it since it's tested and works. v2: also run GC on update as well as delete v3: fix up error return paths needing two args Signed-off-by: Serge Hallyn <shallyn@cisco.com> Signed-off-by: Tycho Andersen <tycho@tycho.ws>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
3349e8cb71
commit
95d4a7ce04
@@ -135,8 +135,6 @@ func TestAPIs(t *testing.T) {
|
||||
So(err, ShouldNotBeNil)
|
||||
})
|
||||
|
||||
err = il.DeleteBlob("test", d.String())
|
||||
So(err, ShouldBeNil)
|
||||
})
|
||||
|
||||
err = il.DeleteBlobUpload("test", v)
|
||||
|
||||
Reference in New Issue
Block a user