mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
igonre the duplicate error when to insert project_blobs on quota syncing
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
285d3e1e5c
commit
288e4cc193
@ -284,6 +284,9 @@ func persistPB(projects []quota.ProjectInfo) error {
|
|||||||
}
|
}
|
||||||
_, err = dao.AddBlobsToProject(pro.ProjectID, blobsOfPro...)
|
_, err = dao.AddBlobsToProject(pro.ProjectID, blobsOfPro...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if err == dao.ErrDupRows {
|
||||||
|
continue
|
||||||
|
}
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user