From 65dcd0ce35a6bb49b2c8e1bff4585241c25e5306 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Tue, 10 Oct 2023 13:12:29 -0400 Subject: [PATCH] always cleanup blob download (#747) --- server/download.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/download.go b/server/download.go index bb791130..80914ae3 100644 --- a/server/download.go +++ b/server/download.go @@ -314,6 +314,7 @@ func downloadBlob(ctx context.Context, opts downloadOpts) error { requestURL := opts.mp.BaseURL() requestURL = requestURL.JoinPath("v2", opts.mp.GetNamespaceRepository(), "blobs", opts.digest) if err := download.Prepare(ctx, requestURL, opts.regOpts); err != nil { + blobDownloadManager.Delete(opts.digest) return err }