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

backport #38693
This commit is contained in:
wxiaoguang
2026-07-31 21:41:26 +08:00
committed by GitHub
parent 8ab5d31cf3
commit a8e80ebc23
-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
}