From 21f38a74e69b4616a6af1e4a4982205f5626b335 Mon Sep 17 00:00:00 2001 From: Serge Dubrouski Date: Thu, 21 Apr 2016 20:04:22 -0600 Subject: [PATCH] Add blobWrtiter.Close() call into blobWriter.Commit() Signed-off-by: Serge Dubrouski --- registry/storage/blobwriter.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/registry/storage/blobwriter.go b/registry/storage/blobwriter.go index 7f280d36..418df818 100644 --- a/registry/storage/blobwriter.go +++ b/registry/storage/blobwriter.go @@ -56,6 +56,8 @@ func (bw *blobWriter) Commit(ctx context.Context, desc distribution.Descriptor) return distribution.Descriptor{}, err } + bw.Close() + canonical, err := bw.validateBlob(ctx, desc) if err != nil { return distribution.Descriptor{}, err