Browse Source

提交代码,解决Bug

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.11.2^2
zouap 3 years ago
parent
commit
f5fa4bda66
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      routers/repo/attachment_model.go

+ 4
- 2
routers/repo/attachment_model.go View File

@@ -210,8 +210,10 @@ func copyModelAttachmentFile(typeCloudBrain int, fileChunk *models.ModelFileChun
}
} else {
bucketName := setting.Bucket
log.Info("obs copy..srcObjectName=" + srcObjectName + " bucketName=" + bucketName)
if storage.ObsGetFilesSize(bucketName, []string{destObjectName}) > 0 {
log.Info("obs copy..srcObjectName=" + srcObjectName + " bucketName=" + bucketName + " destObjectName=" + destObjectName)
size := storage.ObsGetFilesSize(bucketName, []string{destObjectName})
log.Info("size=" + fmt.Sprint(size))
if size > 0 {
isExist = true
} else {
log.Info("obs copy..srcObjectName=" + srcObjectName + " bucketName=" + bucketName)


Loading…
Cancel
Save