When deleting tags belonged to the same repository concurrently, the repository may be deleted by one API call and the other calls get 404. This commit logs a warning message and doesn't return 404.
This commit is contained in:
Wenkai Yin 79628 2018-04-12 16:12:40 +08:00
parent 75e6b5d91c
commit ed0effb9c2

View File

@ -324,7 +324,7 @@ func (ra *RepositoryAPI) Delete() {
return
}
if repository == nil {
ra.HandleNotFound(fmt.Sprintf("repository %s not found", repoName))
log.Warningf("the repository %s not found after deleting tags", repoName)
return
}