MDB_meta Struct Reference
[LMDB Internals]

Data Fields

uint32_t mm_magic
uint32_t mm_version
void * mm_address
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).


Field Documentation

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

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

address for fixed mapping

size of mmap region

first is free space, 2nd is main db

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

txnid that committed this page


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on 3 Apr 2026 for LMDB by  doxygen 1.6.1