Skip to content

Commit 5709369

Browse files
committed
Update transaction isolation level to ReadCommitted in MySQL implementation
1 parent 604248c commit 5709369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/mysql/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ func (m *Mysql) Run(migration io.Reader) error {
356356
}
357357

358358
func (m *Mysql) SetVersion(version int, dirty bool) error {
359-
tx, err := m.conn.BeginTx(context.Background(), &sql.TxOptions{Isolation: sql.LevelSerializable})
359+
tx, err := m.conn.BeginTx(context.Background(), &sql.TxOptions{Isolation: sql.LevelReadCommitted})
360360
if err != nil {
361361
return &database.Error{OrigErr: err, Err: "transaction start failed"}
362362
}

0 commit comments

Comments
 (0)