mdbx: refactor/rename/refine tw.cursors internals.

Change-Id: Ie46d15f52a9d7365b52534a630754a31d3005a69
This commit is contained in:
Leonid Yuriev
2020-11-09 01:38:46 +03:00
parent 9a2dbb845c
commit ca115dd6a4
2 changed files with 60 additions and 56 deletions

View File

@@ -778,8 +778,6 @@ struct MDBX_txn {
MDBX_db *mt_dbs;
/* Array of sequence numbers for each DB handle */
unsigned *mt_dbiseqs;
/* In write txns, array of cursors for each DB */
MDBX_cursor **mt_cursors;
/* Transaction DBI Flags */
#define DBI_DIRTY MDBX_DBI_DIRTY /* DB was written in this txn */
@@ -806,6 +804,8 @@ struct MDBX_txn {
MDBX_reader *reader;
} to;
struct {
/* In write txns, array of cursors for each DB */
MDBX_cursor **cursors;
pgno_t *reclaimed_pglist; /* Reclaimed GC pages */
txnid_t last_reclaimed; /* ID of last used record */
pgno_t loose_refund_wl /* FIXME: describe */;