mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-25 01:08:56 +08:00
mdbx: add update-gc context (extracted from bigfoot).
This commit is contained in:
@@ -923,9 +923,9 @@ struct MDBX_txn {
|
||||
/* corresponding to the current size of datafile */
|
||||
#define mt_end_pgno mt_geo.now
|
||||
|
||||
/* The ID of this transaction. IDs are integers incrementing from 1.
|
||||
* Only committed write transactions increment the ID. If a transaction
|
||||
* aborts, the ID may be re-used by the next writer. */
|
||||
/* The ID of this transaction. IDs are integers incrementing from
|
||||
* INITIAL_TXNID. Only committed write transactions increment the ID. If a
|
||||
* transaction aborts, the ID may be re-used by the next writer. */
|
||||
txnid_t mt_txnid;
|
||||
txnid_t mt_front;
|
||||
|
||||
@@ -986,11 +986,11 @@ struct MDBX_txn {
|
||||
MDBX_page *loose_pages;
|
||||
/* Number of loose pages (tw.loose_pages) */
|
||||
unsigned loose_count;
|
||||
unsigned spill_least_removed;
|
||||
/* The sorted list of dirty pages we temporarily wrote to disk
|
||||
* because the dirty list was full. page numbers in here are
|
||||
* shifted left by 1, deleted slots have the LSB set. */
|
||||
MDBX_PNL spill_pages;
|
||||
unsigned spill_least_removed;
|
||||
} tw;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user