From 4b4747a8cc7f5c8c2fe768cb459576f730457e04 Mon Sep 17 00:00:00 2001 From: Maksym Trofimenko Date: Mon, 12 Jun 2023 19:47:59 +0100 Subject: [PATCH] Add extra call of flushPart to avoid of losing pendingBytes Signed-off-by: Maksym Trofimenko --- registry/storage/driver/s3-aws/s3.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/storage/driver/s3-aws/s3.go b/registry/storage/driver/s3-aws/s3.go index 8753b3455..de6ea648d 100644 --- a/registry/storage/driver/s3-aws/s3.go +++ b/registry/storage/driver/s3-aws/s3.go @@ -1539,5 +1539,5 @@ func (w *writer) flushPart() error { }) w.readyPart = w.pendingPart w.pendingPart = nil - return nil + return w.flushPart() }