Skip to content

Struct MDBX_envinfo

ClassList > MDBX_envinfo

Information about the environment. More...

  • #include <mdbx.h>

Public Attributes

Type Name
uint32_t mi_autosync_period_seconds16dot16
uint64_t mi_autosync_threshold
struct MDBX_envinfo::@225321261137354274271145171267327003060372362213 mi_bootid
A mostly unique ID that is regenerated on each boot.
uint64_t mi_dxb_fallocated
uint64_t mi_dxb_fsize
uint32_t mi_dxb_pagesize
struct MDBX_envinfo::@375355023317006362170235236275166124351104110266 mi_dxbid
struct MDBX_envinfo::@201222107354167247103233373357151311236127267357 mi_geo
uint64_t mi_last_pgno
uint64_t mi_latter_reader_txnid
uint64_t mi_mapsize
uint32_t mi_maxreaders
uint64_t mi_meta_sign
uint64_t mi_meta_txnid
uint32_t mi_mode
uint32_t mi_numreaders
struct MDBX_envinfo::@056315265017035167025206247065126122027134305030 mi_pgop_stat
uint64_t mi_recent_txnid
uint64_t mi_self_latter_reader_txnid
uint32_t mi_since_reader_check_seconds16dot16
uint32_t mi_since_sync_seconds16dot16
uint32_t mi_sys_ioblk
uint32_t mi_sys_pagesize
uint32_t mi_sys_upcblk
uint64_t mi_unsync_volume

Detailed Description

See also: mdbx_env_info_ex()

Public Attributes Documentation

variable mi_autosync_period_seconds16dot16

uint32_t MDBX_envinfo::mi_autosync_period_seconds16dot16;

Current auto-sync period in 1/65536 of second, see mdbx_env_set_syncperiod().


variable mi_autosync_threshold

uint64_t MDBX_envinfo::mi_autosync_threshold;

Current auto-sync threshold, see mdbx_env_set_syncbytes().


variable mi_bootid

A mostly unique ID that is regenerated on each boot.

struct MDBX_envinfo::@225321261137354274271145171267327003060372362213 MDBX_envinfo::mi_bootid;

As such it can be used to identify the local machine's current boot. MDBX uses such when open the database to determine whether rollback required to the last steady sync point or not. I.e. if current bootid is differ from the value within a database then the system was rebooted and all changes since last steady sync must be reverted for data integrity. Zeros mean that no relevant information is available from the system.


variable mi_dxb_fallocated

uint64_t MDBX_envinfo::mi_dxb_fallocated;

Space allocated for the database file in a filesystem


variable mi_dxb_fsize

uint64_t MDBX_envinfo::mi_dxb_fsize;

Current database file size


variable mi_dxb_pagesize

uint32_t MDBX_envinfo::mi_dxb_pagesize;

Database pagesize


variable mi_dxbid

struct MDBX_envinfo::@375355023317006362170235236275166124351104110266 MDBX_envinfo::mi_dxbid;

variable mi_geo

struct MDBX_envinfo::@201222107354167247103233373357151311236127267357 MDBX_envinfo::mi_geo;

variable mi_last_pgno

uint64_t MDBX_envinfo::mi_last_pgno;

Number of the last used page


variable mi_latter_reader_txnid

uint64_t MDBX_envinfo::mi_latter_reader_txnid;

ID of the last reader transaction


variable mi_mapsize

uint64_t MDBX_envinfo::mi_mapsize;

Size of the database memory map


variable mi_maxreaders

uint32_t MDBX_envinfo::mi_maxreaders;

Total reader slots in the environment


variable mi_meta_sign

uint64_t MDBX_envinfo::mi_meta_sign[3];

variable mi_meta_txnid

uint64_t MDBX_envinfo::mi_meta_txnid[3];

variable mi_mode

uint32_t MDBX_envinfo::mi_mode;

Current environment mode. The same as mdbx_env_get_flags() returns.


variable mi_numreaders

uint32_t MDBX_envinfo::mi_numreaders;

Max reader slots used in the environment


variable mi_pgop_stat

struct MDBX_envinfo::@056315265017035167025206247065126122027134305030 MDBX_envinfo::mi_pgop_stat;

Statistics of page operations.

Overall statistics of page operations of all (running, completed and aborted) transactions in the current multi-process session (since the first process opened the database after everyone had previously closed it).


variable mi_recent_txnid

uint64_t MDBX_envinfo::mi_recent_txnid;

ID of the last committed transaction


variable mi_self_latter_reader_txnid

uint64_t MDBX_envinfo::mi_self_latter_reader_txnid;

ID of the last reader transaction of this/current process


variable mi_since_reader_check_seconds16dot16

uint32_t MDBX_envinfo::mi_since_reader_check_seconds16dot16;

Time since the last readers check in 1/65536 of second, see mdbx_reader_check().


variable mi_since_sync_seconds16dot16

uint32_t MDBX_envinfo::mi_since_sync_seconds16dot16;

Time since entering to a "dirty" out-of-sync state in units of 1/65536 of second. In other words, this is the time since the last non-steady commit or zero if it was steady.


variable mi_sys_ioblk

uint32_t MDBX_envinfo::mi_sys_ioblk;

Filesystem I/O block size


variable mi_sys_pagesize

uint32_t MDBX_envinfo::mi_sys_pagesize;

System pagesize


variable mi_sys_upcblk

uint32_t MDBX_envinfo::mi_sys_upcblk;

System "Unified Page Cache" block size


variable mi_unsync_volume

uint64_t MDBX_envinfo::mi_unsync_volume;

Bytes not explicitly synchronized to disk



The documentation for this class was generated from the following file docs/mdbx.h