Code Review
/
nonrtric
/
plt
/
sme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Add missing locks
[nonrtric/plt/sme.git]
/
capifcore
/
internal
/
publishservice
/
publishservice.go
diff --git
a/capifcore/internal/publishservice/publishservice.go
b/capifcore/internal/publishservice/publishservice.go
index
eda6af2
..
43cdb8d
100644
(file)
--- a/
capifcore/internal/publishservice/publishservice.go
+++ b/
capifcore/internal/publishservice/publishservice.go
@@
-182,6
+182,8
@@
func (ps *PublishService) DeleteApfIdServiceApisServiceApiId(ctx echo.Context, a
ps.helmManager.UninstallHelmChart(info[1], info[3])
log.Info("Deleted service: ", serviceApiId)
}
+ ps.lock.Lock()
+ defer ps.lock.Unlock()
delete(ps.publishedServices, string(serviceApiId))
}
return ctx.NoContent(http.StatusNoContent)