mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-23 07:11:36 +01:00
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:
commit
551a956fcb
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user