Ver Fonte

always cleanup blob download (#747)

Jeffrey Morgan há 1 ano atrás
pai
commit
65dcd0ce35
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      server/download.go

+ 1 - 0
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
 		}