Monero
Loading...
Searching...
No Matches
MDB_meta Struct Reference
Collaboration diagram for MDB_meta:

Public Attributes

uint32_t mm_magic
uint32_t mm_version
void * mm_address
mdb_size_t mm_mapsize
MDB_db mm_dbs [CORE_DBS]
pgno_t mm_last_pg
volatile txnid_t mm_txnid

Detailed Description

Meta page content. A meta page is the start point for accessing a database snapshot. Pages 0-1 are meta pages. Transaction N writes meta page #(N % 2).

Member Data Documentation

◆ mm_address

void* MDB_meta::mm_address

address for fixed mapping

◆ mm_dbs

MDB_db MDB_meta::mm_dbs[CORE_DBS]

first is free space, 2nd is main db

◆ mm_last_pg

pgno_t MDB_meta::mm_last_pg

Last used page in the datafile. Actually the file may be shorter if the freeDB lists the final pages.

◆ mm_magic

uint32_t MDB_meta::mm_magic

Stamp identifying this as an LMDB file. It must be set to MDB_MAGIC.

◆ mm_mapsize

mdb_size_t MDB_meta::mm_mapsize

size of mmap region

◆ mm_txnid

volatile txnid_t MDB_meta::mm_txnid

txnid that committed this page

◆ mm_version

uint32_t MDB_meta::mm_version

Version number of this file. Must be set to MDB_DATA_VERSION.


The documentation for this struct was generated from the following file: