MDB_env Struct Reference
[LMDB Internals]

Opaque structure for a database environment. More...

Data Fields

HANDLE me_fd
HANDLE me_lfd
HANDLE me_mfd
uint32_t me_flags
unsigned int me_psize
unsigned int me_os_psize
unsigned int me_maxreaders
volatile int me_close_readers
MDB_dbi me_numdbs
MDB_dbi me_maxdbs
MDB_PID_T me_pid
char * me_path
char * me_map
MDB_txninfome_txns
MDB_metame_metas [NUM_METAS]
void * me_pbuf
MDB_txnme_txn
MDB_txnme_txn0
size_t me_mapsize
off_t me_size
pgno_t me_maxpg
MDB_dbxme_dbxs
uint16_t * me_dbflags
unsigned int * me_dbiseqs
pthread_key_t me_txkey
txnid_t me_pgoldest
MDB_pgstate me_pgstate
MDB_pageme_dpages
MDB_IDL me_free_pgs
MDB_ID2L me_dirty_list
int me_maxfree_1pg
unsigned int me_nodemax
int me_live_reader
void * me_userctx
MDB_assert_funcme_assert_func

Detailed Description

Opaque structure for a database environment.

The database environment.

A DB environment supports multiple databases, all residing in the same shared-memory map.


Field Documentation

The main data file

The lock file

just for writing the meta pages

unsigned int MDB_env::me_psize

DB page size, inited from me_os_psize

unsigned int MDB_env::me_os_psize

OS page size, from GET_PAGESIZE

unsigned int MDB_env::me_maxreaders

size of the reader table

Max MDB_txninfo.mti_numreaders of interest to mdb_env_close()

number of DBs opened

size of the DB table

MDB_PID_T MDB_env::me_pid

process ID of this env

path to the DB files

the memory map of the data file

the memory map of the lock file or NULL

pointers to the two meta pages

scratch area for DUPSORT put()

current write transaction

prealloc'd write transaction

size of the data memory map

current file size

me_mapsize / me_psize

array of static DB info

array of flags from MDB_db.md_flags

unsigned int* MDB_env::me_dbiseqs

array of dbi sequence numbers

pthread_key_t MDB_env::me_txkey

thread-key for readers

ID of oldest reader last time we looked

state of old pages from freeDB

list of malloc'd blocks for re-use

IDL of pages that became unused in a write txn

ID2L of pages written during a write txn. Length MDB_IDL_UM_SIZE.

Max number of freelist items that can fit in a single overflow page

unsigned int MDB_env::me_nodemax

Max size of a node on a page

have liveness lock in reader table

User-settable context

Callback for assertion failures


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

Generated on 15 Feb 2016 for LMDB by  doxygen 1.6.1