tdb/begin: use txn id in mem
This commit is contained in:
parent
50318f6f96
commit
a780305e10
|
@ -103,7 +103,7 @@ int32_t tdbBegin(TDB *pDb, TXN **ppTxn, void *(*xMalloc)(void *, size_t), void (
|
|||
int flags) {
|
||||
SPager *pPager;
|
||||
int ret;
|
||||
int64_t txnId = 1;
|
||||
int64_t txnId = ++pDb->txnId;
|
||||
|
||||
TXN *pTxn = tdbOsCalloc(1, sizeof(*pTxn));
|
||||
if (!pTxn) {
|
||||
|
|
|
@ -382,6 +382,7 @@ struct STDB {
|
|||
#ifdef USE_MAINDB
|
||||
TTB *pMainDb;
|
||||
#endif
|
||||
int64_t txnId;
|
||||
};
|
||||
|
||||
typedef struct hashset_st *hashset_t;
|
||||
|
|
Loading…
Reference in New Issue