mirror of
https://github.com/isar/libmdbx.git
synced 2025-10-18 22:09:03 +08:00
mdbx: move boot-id from LCK to meta.
Change-Id: I7a371feb1a2c43e3606c516fe7b4c7d7a4ff6e73
This commit is contained in:
23
mdbx.h
23
mdbx.h
@@ -1657,16 +1657,19 @@ typedef struct MDBX_envinfo {
|
||||
uint32_t mi_dxb_pagesize; /* database pagesize */
|
||||
uint32_t mi_sys_pagesize; /* system pagesize */
|
||||
|
||||
uint64_t
|
||||
mi_bootid[2]; /* A mostly unique ID that is regenerated on each boot.
|
||||
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. */
|
||||
struct {
|
||||
/* A mostly unique ID that is regenerated on each boot. 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. */
|
||||
struct {
|
||||
uint64_t l, h;
|
||||
} current, meta0, meta1, meta2;
|
||||
} mi_bootid;
|
||||
|
||||
uint64_t mi_unsync_volume; /* bytes not explicitly synchronized to disk */
|
||||
uint64_t mi_autosync_threshold; /* current auto-sync threshold, see
|
||||
mdbx_env_set_syncbytes(). */
|
||||
|
Reference in New Issue
Block a user