mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 23:39:19 +08:00
mdbx: fix internal comments.
Change-Id: Ica95587f74501e78259805cba4393a430af0437b
This commit is contained in:
parent
4560ddcd1e
commit
8921da2787
@ -4515,7 +4515,7 @@ int mdbx_txn_reset(MDBX_txn *txn) {
|
|||||||
if (unlikely((txn->mt_flags & MDBX_RDONLY) == 0))
|
if (unlikely((txn->mt_flags & MDBX_RDONLY) == 0))
|
||||||
return MDBX_EINVAL;
|
return MDBX_EINVAL;
|
||||||
|
|
||||||
/* LY: don't close DBI-handles in MDBX mode */
|
/* LY: don't close DBI-handles */
|
||||||
rc = mdbx_txn_end(txn, MDBX_END_RESET | MDBX_END_UPDATE);
|
rc = mdbx_txn_end(txn, MDBX_END_RESET | MDBX_END_UPDATE);
|
||||||
if (rc == MDBX_SUCCESS) {
|
if (rc == MDBX_SUCCESS) {
|
||||||
mdbx_tassert(txn, txn->mt_signature == MDBX_MT_SIGNATURE);
|
mdbx_tassert(txn, txn->mt_signature == MDBX_MT_SIGNATURE);
|
||||||
@ -4530,7 +4530,7 @@ int mdbx_txn_abort(MDBX_txn *txn) {
|
|||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
if (F_ISSET(txn->mt_flags, MDBX_RDONLY))
|
if (F_ISSET(txn->mt_flags, MDBX_RDONLY))
|
||||||
/* LY: don't close DBI-handles in MDBX mode */
|
/* LY: don't close DBI-handles */
|
||||||
return mdbx_txn_end(txn, MDBX_END_ABORT | MDBX_END_UPDATE | MDBX_END_SLOT |
|
return mdbx_txn_end(txn, MDBX_END_ABORT | MDBX_END_UPDATE | MDBX_END_SLOT |
|
||||||
MDBX_END_FREE);
|
MDBX_END_FREE);
|
||||||
|
|
||||||
|
@ -216,6 +216,8 @@
|
|||||||
#define MDBX_TXN_CHECKPID_CONFIG MDBX_TXN_CHECKPID
|
#define MDBX_TXN_CHECKPID_CONFIG MDBX_TXN_CHECKPID
|
||||||
#endif /* MDBX_TXN_CHECKPID */
|
#endif /* MDBX_TXN_CHECKPID */
|
||||||
|
|
||||||
|
/* Controls checking transaction owner thread against misuse transactions from
|
||||||
|
* other threads. */
|
||||||
#ifndef MDBX_TXN_CHECKOWNER
|
#ifndef MDBX_TXN_CHECKOWNER
|
||||||
#define MDBX_TXN_CHECKOWNER 1
|
#define MDBX_TXN_CHECKOWNER 1
|
||||||
#endif /* MDBX_TXN_CHECKOWNER */
|
#endif /* MDBX_TXN_CHECKOWNER */
|
||||||
|
Loading…
Reference in New Issue
Block a user