We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71892aa commit 5783df4Copy full SHA for 5783df4
backend/mysql/mysql.go
@@ -58,7 +58,9 @@ type mysqlBackend struct {
58
59
// CreateWorkflowInstance creates a new workflow instance
60
func (b *mysqlBackend) CreateWorkflowInstance(ctx context.Context, m history.WorkflowEvent) error {
61
- tx, err := b.db.BeginTx(ctx, nil)
+ tx, err := b.db.BeginTx(ctx, &sql.TxOptions{
62
+ Isolation: sql.LevelReadCommitted,
63
+ })
64
if err != nil {
65
return errors.Wrap(err, "could not start transaction")
66
}
0 commit comments