b2: fix multi-thread upload with copyto going to wrong name

See: https://forum.rclone.org/t/errors-and-failure-with-big-file-upload-to-b2/42522/
This commit is contained in:
Nick Craig-Wood 2023-10-27 16:45:37 +01:00
parent 0180301b3f
commit bf21db0ac4

View File

@ -2079,7 +2079,7 @@ func (f *Fs) OpenChunkWriter(ctx context.Context, remote string, src fs.ObjectIn
// Temporary Object under construction // Temporary Object under construction
o := &Object{ o := &Object{
fs: f, fs: f,
remote: src.Remote(), remote: remote,
} }
bucket, _ := o.split() bucket, _ := o.split()