mdbx: support for user-settable transaction context.

Change-Id: Ib4a345628e2c1ca2f95ac7615ea53d94911e5198
This commit is contained in:
Leonid Yuriev
2020-09-29 14:41:44 +03:00
parent 10c50aaf2e
commit 6294e1710a
4 changed files with 112 additions and 2 deletions

View File

@@ -798,6 +798,7 @@ struct MDBX_txn {
MDBX_dbi mt_numdbs;
size_t mt_owner; /* thread ID that owns this transaction */
MDBX_canary mt_canary;
void *mt_userctx; /* User-settable context */
union {
struct {