From f4e373e0d2451e11224dbd9c7ab0fc7718e177a5 Mon Sep 17 00:00:00 2001 From: yfanswer <31478482+yfanswer@users.noreply.github.com> Date: Thu, 27 Jan 2022 03:55:58 +0800 Subject: [PATCH] de-couple cache completeMultipartUpload with caller context (#14181) --- cmd/disk-cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/disk-cache.go b/cmd/disk-cache.go index 50b1fd059..a6df3bee7 100644 --- a/cmd/disk-cache.go +++ b/cmd/disk-cache.go @@ -1153,7 +1153,7 @@ func (c *cacheObjects) CompleteMultipartUpload(ctx context.Context, bucket, obje if err == nil { // fill cache in the background go func() { - _, err := dcache.CompleteMultipartUpload(ctx, bucket, object, uploadID, uploadedParts, oi, opts) + _, err := dcache.CompleteMultipartUpload(bgContext(ctx), bucket, object, uploadID, uploadedParts, oi, opts) if err != nil { // fill cache in the background bReader, bErr := c.InnerGetObjectNInfoFn(GlobalContext, bucket, object, nil, http.Header{}, readLock, ObjectOptions{})