Skip to content

Commit 29884e8

Browse files
author
jojoliang
committed
更新MultiCopy
1 parent 8aa3cb8 commit 29884e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

object_part.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ func (s *ObjectService) MultiCopy(ctx context.Context, name string, sourceURL st
536536
if err != nil {
537537
return nil, nil, err
538538
}
539-
if partNum == 0 || (totalBytes < singleUploadMaxLength && !opt.useMulti) {
539+
if partNum == 0 || (totalBytes <= singleUploadMaxLength && !opt.useMulti) {
540540
if len(id) > 0 {
541541
return s.Copy(ctx, name, sourceURL, opt.OptCopy, id[0])
542542
} else {

0 commit comments

Comments
 (0)