Add blobWrtiter.Close() call into blobWriter.Commit()

Signed-off-by: Serge Dubrouski <sergeyfd@gmail.com>
This commit is contained in:
Serge Dubrouski 2016-04-21 20:04:22 -06:00 committed by Richard Scothern
parent 3f538cac90
commit fd5a404996

View file

@ -56,6 +56,8 @@ func (bw *blobWriter) Commit(ctx context.Context, desc distribution.Descriptor)
return distribution.Descriptor{}, err return distribution.Descriptor{}, err
} }
bw.Close()
canonical, err := bw.validateBlob(ctx, desc) canonical, err := bw.validateBlob(ctx, desc)
if err != nil { if err != nil {
return distribution.Descriptor{}, err return distribution.Descriptor{}, err