NCBI C++ ToolKit
Public Attributes | List of all members
MDB_env Struct Reference

Search Toolkit Book for MDB_env

The database environment. More...

+ Collaboration diagram for MDB_env:

Public Attributes

int me_fd
 The main data file. More...
 
int me_lfd
 The lock file. More...
 
int me_mfd
 For writing and syncing the meta pages. More...
 
uint32_t me_flags
 Environment Flags More...
 
unsigned int me_psize
 DB page size, inited from me_os_psize. More...
 
unsigned int me_os_psize
 OS page size, from GET_PAGESIZE. More...
 
unsigned int me_maxreaders
 size of the reader table More...
 
volatile int me_close_readers
 Max MDB_txninfo. More...
 
MDB_dbi me_numdbs
 number of DBs opened More...
 
MDB_dbi me_maxdbs
 size of the DB table More...
 
pid_t me_pid
 process ID of this env More...
 
char * me_path
 path to the DB files More...
 
char * me_map
 the memory map of the data file More...
 
MDB_txninfome_txns
 the memory map of the lock file or NULL More...
 
MDB_metame_metas [2]
 pointers to the two meta pages More...
 
void * me_pbuf
 scratch area for DUPSORT put() More...
 
MDB_txnme_txn
 current write transaction More...
 
MDB_txnme_txn0
 prealloc'd write transaction More...
 
size_t me_mapsize
 size of the data memory map More...
 
off_t me_size
 current file size More...
 
pgno_t me_maxpg
 me_mapsize / me_psize More...
 
MDB_dbxme_dbxs
 array of static DB info More...
 
uint16_tme_dbflags
 array of flags from MDB_db.md_flags More...
 
unsigned intme_dbiseqs
 array of dbi sequence numbers More...
 
pthread_key_t me_txkey
 thread-key for readers More...
 
txnid_t me_pgoldest
 ID of oldest reader last time we looked. More...
 
MDB_pgstate me_pgstate
 state of old pages from freeDB More...
 
MDB_pageme_dpages
 list of malloc'd blocks for re-use More...
 
MDB_IDL me_free_pgs
 IDL of pages that became unused in a write txn. More...
 
MDB_ID2L me_dirty_list
 ID2L of pages written during a write txn. More...
 
int me_maxfree_1pg
 Max number of freelist items that can fit in a single overflow page. More...
 
unsigned int me_nodemax
 Max size of a node on a page. More...
 
int me_live_reader
 have liveness lock in reader table More...
 
void * me_userctx
 User-settable context. More...
 
MDB_assert_funcme_assert_func
 Callback for assertion failures. More...
 

Detailed Description

The database environment.

Definition at line 1259 of file mdb.c.

Member Data Documentation

◆ me_assert_func

MDB_assert_func* MDB_env::me_assert_func

Callback for assertion failures.

Definition at line 1322 of file mdb.c.

◆ me_close_readers

volatile int MDB_env::me_close_readers

Max MDB_txninfo.

mti_numreaders of interest to mdb_env_close()

Definition at line 1276 of file mdb.c.

◆ me_dbflags

uint16_t* MDB_env::me_dbflags

array of flags from MDB_db.md_flags

Definition at line 1291 of file mdb.c.

◆ me_dbiseqs

unsigned int* MDB_env::me_dbiseqs

array of dbi sequence numbers

Definition at line 1292 of file mdb.c.

Referenced by mdb_dbi_open().

◆ me_dbxs

MDB_dbx* MDB_env::me_dbxs

array of static DB info

Definition at line 1290 of file mdb.c.

◆ me_dirty_list

MDB_ID2L MDB_env::me_dirty_list

ID2L of pages written during a write txn.

Length MDB_IDL_UM_SIZE.

Definition at line 1302 of file mdb.c.

◆ me_dpages

MDB_page* MDB_env::me_dpages

list of malloc'd blocks for re-use

Definition at line 1298 of file mdb.c.

◆ me_fd

int MDB_env::me_fd

The main data file.

Definition at line 1260 of file mdb.c.

Referenced by mdb_env_create().

◆ me_flags

uint32_t MDB_env::me_flags

Environment Flags

Definition at line 1271 of file mdb.c.

◆ me_free_pgs

MDB_IDL MDB_env::me_free_pgs

IDL of pages that became unused in a write txn.

Definition at line 1300 of file mdb.c.

◆ me_lfd

int MDB_env::me_lfd

The lock file.

Definition at line 1261 of file mdb.c.

Referenced by mdb_env_create().

◆ me_live_reader

int MDB_env::me_live_reader

have liveness lock in reader table

Definition at line 1310 of file mdb.c.

◆ me_map

char* MDB_env::me_map

the memory map of the data file

Definition at line 1281 of file mdb.c.

◆ me_mapsize

size_t MDB_env::me_mapsize

size of the data memory map

Definition at line 1287 of file mdb.c.

◆ me_maxdbs

MDB_dbi MDB_env::me_maxdbs

size of the DB table

Definition at line 1278 of file mdb.c.

Referenced by mdb_dbi_open(), and mdb_env_create().

◆ me_maxfree_1pg

int MDB_env::me_maxfree_1pg

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

Definition at line 1304 of file mdb.c.

◆ me_maxpg

pgno_t MDB_env::me_maxpg

me_mapsize / me_psize

Definition at line 1289 of file mdb.c.

◆ me_maxreaders

unsigned int MDB_env::me_maxreaders

size of the reader table

Definition at line 1274 of file mdb.c.

Referenced by mdb_env_create().

◆ me_metas

MDB_meta* MDB_env::me_metas[2]

pointers to the two meta pages

Definition at line 1283 of file mdb.c.

◆ me_mfd

int MDB_env::me_mfd

For writing and syncing the meta pages.

Definition at line 1262 of file mdb.c.

Referenced by mdb_env_create().

◆ me_nodemax

unsigned int MDB_env::me_nodemax

Max size of a node on a page.

Definition at line 1306 of file mdb.c.

Referenced by mdb_node_add().

◆ me_numdbs

MDB_dbi MDB_env::me_numdbs

number of DBs opened

Definition at line 1277 of file mdb.c.

Referenced by mdb_env_create().

◆ me_os_psize

unsigned int MDB_env::me_os_psize

OS page size, from GET_PAGESIZE.

Definition at line 1273 of file mdb.c.

Referenced by mdb_env_create().

◆ me_path

char* MDB_env::me_path

path to the DB files

Definition at line 1280 of file mdb.c.

◆ me_pbuf

void* MDB_env::me_pbuf

scratch area for DUPSORT put()

Definition at line 1284 of file mdb.c.

◆ me_pgoldest

txnid_t MDB_env::me_pgoldest

ID of oldest reader last time we looked.

Definition at line 1294 of file mdb.c.

◆ me_pgstate

MDB_pgstate MDB_env::me_pgstate

state of old pages from freeDB

Definition at line 1295 of file mdb.c.

◆ me_pid

pid_t MDB_env::me_pid

process ID of this env

Definition at line 1279 of file mdb.c.

Referenced by mdb_env_create().

◆ me_psize

unsigned int MDB_env::me_psize

DB page size, inited from me_os_psize.

Definition at line 1272 of file mdb.c.

Referenced by mdb_env_cwalk(), mdb_node_add(), mdb_page_new(), mdb_page_spill(), and mdb_page_touch().

◆ me_size

off_t MDB_env::me_size

current file size

Definition at line 1288 of file mdb.c.

◆ me_txkey

pthread_key_t MDB_env::me_txkey

thread-key for readers

Definition at line 1293 of file mdb.c.

◆ me_txn

MDB_txn* MDB_env::me_txn

current write transaction

Definition at line 1285 of file mdb.c.

◆ me_txn0

MDB_txn* MDB_env::me_txn0

prealloc'd write transaction

Definition at line 1286 of file mdb.c.

◆ me_txns

MDB_txninfo* MDB_env::me_txns

the memory map of the lock file or NULL

Definition at line 1282 of file mdb.c.

Referenced by mdb_find_oldest().

◆ me_userctx

void* MDB_env::me_userctx

User-settable context.

Definition at line 1321 of file mdb.c.


The documentation for this struct was generated from the following file:
Modified on Sun Apr 14 05:29:24 2024 by modify_doxy.py rev. 669887