mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 00:58:22 +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))
|
if (unlikely(rc != MDBX_SUCCESS))
|
||||||
return LOG_IFERR(rc);
|
return LOG_IFERR(rc);
|
||||||
txn->flags |= MDBX_TXN_ERROR;
|
txn->flags |= MDBX_TXN_ERROR;
|
||||||
if (txn->flags & MDBX_TXN_RDONLY)
|
|
||||||
break;
|
|
||||||
txn = txn->nested;
|
txn = txn->nested;
|
||||||
} while (txn);
|
} while (txn);
|
||||||
return MDBX_SUCCESS;
|
return MDBX_SUCCESS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user