From faaab066d8e509dc440bcbc87391557ecee7dbf2 Mon Sep 17 00:00:00 2001 From: Brenna N Epp Date: Fri, 14 Oct 2022 18:47:45 +0000 Subject: [PATCH] fix(storage): fix request token passing for Copier.Run (#6863) This fixes infinite retry issues. Will follow up with tests to catch this behaviour. Fixes #6857 --- storage/copy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/copy.go b/storage/copy.go index 60ed81391e6..05d211a3a63 100644 --- a/storage/copy.go +++ b/storage/copy.go @@ -127,6 +127,7 @@ func (c *Copier) Run(ctx context.Context) (attrs *ObjectAttrs, err error) { return nil, err } c.RewriteToken = res.token + req.token = res.token if c.ProgressFunc != nil { c.ProgressFunc(uint64(res.written), uint64(res.size)) }