mirror of
https://gitee.com/lxp135/minio-plus.git
synced 2025-12-06 17:08:26 +08:00
使用createFile方法时,删除同一用户下相同文件元数据只创建一次的逻辑。
This commit is contained in:
parent
cab7468bd8
commit
1b340bad03
@ -137,12 +137,6 @@ public class StorageServiceImpl implements StorageService {
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (FileMetadataInfoVo fileMetadataInfoVo : alreadyFileList) {
|
||||
if(Boolean.TRUE.equals(fileMetadataInfoVo.getIsFinished())&&fileMetadataInfoVo.getCreateUser().equals(saveDTO.getCreateUser())){
|
||||
// 当存在该用户上传的相同md5值文件时,直接返回,元数据不再创建
|
||||
return fileMetadataInfoVo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(!sameMd5){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user