Merge pull request #9418 from wy65701436/quota-dup

ignore the duplicate error when to insert project_blobs on quota syncing
This commit is contained in:
Wang Yan 2019-10-15 16:37:21 +08:00 committed by GitHub
commit 551a956fcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -284,6 +284,9 @@ func persistPB(projects []quota.ProjectInfo) error {
}
_, err = dao.AddBlobsToProject(pro.ProjectID, blobsOfPro...)
if err != nil {
if err == dao.ErrDupRows {
continue
}
log.Error(err)
return err
}