mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-18 13:52:02 +01:00
sqldb: ensure that we're using serializable isolation
This commit is contained in:
parent
0609431a0c
commit
c6073a14ca
@ -366,7 +366,8 @@ type BaseDB struct {
|
||||
// struct.
|
||||
func (s *BaseDB) BeginTx(ctx context.Context, opts TxOptions) (*sql.Tx, error) {
|
||||
sqlOptions := sql.TxOptions{
|
||||
ReadOnly: opts.ReadOnly(),
|
||||
Isolation: sql.LevelSerializable,
|
||||
ReadOnly: opts.ReadOnly(),
|
||||
}
|
||||
|
||||
return s.DB.BeginTx(ctx, &sqlOptions)
|
||||
|
Loading…
x
Reference in New Issue
Block a user