This commit is contained in:
Alex Sharov 2021-05-04 13:21:51 +07:00 committed by GitHub
parent fc196d4b9b
commit 4b7873708a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,7 +346,7 @@ func (db *MdbxKV) BeginRw(_ context.Context) (txn RwTx, err error) {
}
}()
tx, err := db.env.BeginTxn(nil, mdbx.TxNoMetaSync|mdbx.TxNoSync)
tx, err := db.env.BeginTxn(nil, 0)
if err != nil {
runtime.UnlockOSThread() // unlock only in case of error. normal flow is "defer .Rollback()"
return nil, err