fix(database): fix a data race around the bucket sequences EE-4332 (#7738)

This commit is contained in:
andres-portainer
2022-09-27 16:14:00 -03:00
committed by GitHub
parent 90a0e6fe35
commit e9384a6987
5 changed files with 3 additions and 25 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ func (service *Service) GetNextIdentifier() int {
// CreateStack creates a new stack.
func (service *Service) Create(stack *portainer.Stack) error {
return service.connection.CreateObjectWithSetSequence(BucketName, int(stack.ID), stack)
return service.connection.CreateObjectWithId(BucketName, int(stack.ID), stack)
}
// UpdateStack updates a stack.