Skip to content

Commit

Permalink
fix(catalog/sql): change isolation to LevelDefault (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade authored Jan 29, 2025
1 parent 1f60b1b commit 48d094d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catalog/sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func withReadTx[R any](ctx context.Context, db *bun.DB, fn func(context.Context,
}

func withWriteTx(ctx context.Context, db *bun.DB, fn func(context.Context, bun.Tx) error) error {
return db.RunInTx(ctx, &sql.TxOptions{Isolation: sql.LevelLinearizable}, func(ctx context.Context, tx bun.Tx) error {
return db.RunInTx(ctx, &sql.TxOptions{Isolation: sql.LevelDefault}, func(ctx context.Context, tx bun.Tx) error {
return fn(ctx, tx)
})
}
Expand Down

0 comments on commit 48d094d

Please sign in to comment.