Skip to content

Race condition in transactionCommitInformer #358

Description

@p-kozlowski

During startup, when two threads/goroutines call transactionCommitInformer() (https://github.com/cloudwan/gohan/blob/master/server/transaction_commit_informer.go#L30), both may observe transactionCommited == nil and both will initialize transactionCommited, so both calls will return separate instances of transactionCommited.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions