fix(lfs): failed upload deletes a concurrent upload's meta object (#38693) (#38722)

backport #38693
This commit is contained in:
wxiaoguang authored and GitHub committed 2026-07-31 13:41:26 +00:00
1 parent 8ab5d31cf3
commit a8e80ebc23
1 file changed
-3
-3
View File
@@ -372,9 +372,6 @@ func UploadHandler(ctx *context.Context) {
log.Error("Error whilst uploadOrVerify LFS OID[%s]: %v", p.Oid, err)
writeStatus(ctx, http.StatusInternalServerError)
}
if _, err = git_model.RemoveLFSMetaObjectByOid(ctx, repository.ID, p.Oid); err != nil {
log.Error("Error whilst removing MetaObject for LFS OID[%s]: %v", p.Oid, err)
}
return
}