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:
wang yan 2019-10-15 14:14:13 +08:00
parent 285d3e1e5c
commit 288e4cc193

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
}