mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-19 19:18:20 +08:00
mdbx: упрощение mdbx_txn_break()
.
This commit is contained in:
parent
1e5fef2c76
commit
6fe7baa1b8
@ -90,8 +90,6 @@ int mdbx_txn_break(MDBX_txn *txn) {
|
||||
if (unlikely(rc != MDBX_SUCCESS))
|
||||
return LOG_IFERR(rc);
|
||||
txn->flags |= MDBX_TXN_ERROR;
|
||||
if (txn->flags & MDBX_TXN_RDONLY)
|
||||
break;
|
||||
txn = txn->nested;
|
||||
} while (txn);
|
||||
return MDBX_SUCCESS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user