mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:34:14 +08:00
mdbx: сокращение излишнего вызова osal_thread_self()
.
This commit is contained in:
parent
e9b10db255
commit
39f2bb142a
@ -9196,7 +9196,7 @@ int mdbx_txn_renew(MDBX_txn *txn) {
|
|||||||
|
|
||||||
rc = txn_renew(txn, MDBX_TXN_RDONLY);
|
rc = txn_renew(txn, MDBX_TXN_RDONLY);
|
||||||
if (rc == MDBX_SUCCESS) {
|
if (rc == MDBX_SUCCESS) {
|
||||||
txn->mt_owner = osal_thread_self();
|
tASSERT(txn, txn->mt_owner == osal_thread_self());
|
||||||
DEBUG("renew txn %" PRIaTXN "%c %p on env %p, root page %" PRIaPGNO
|
DEBUG("renew txn %" PRIaTXN "%c %p on env %p, root page %" PRIaPGNO
|
||||||
"/%" PRIaPGNO,
|
"/%" PRIaPGNO,
|
||||||
txn->mt_txnid, (txn->mt_flags & MDBX_TXN_RDONLY) ? 'r' : 'w',
|
txn->mt_txnid, (txn->mt_flags & MDBX_TXN_RDONLY) ? 'r' : 'w',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user