From 105947b50cbcbdfc65da6283b0598375f39d17a6 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Wed, 28 Oct 2020 03:16:57 +0300 Subject: [PATCH] mdbx: minor refine internals comments/docs. Change-Id: Ie1dd2233259948b4906e66fb191832dbc6526c47 --- src/bits.md | 2 +- src/internals.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bits.md b/src/bits.md index ba7e4eaa..b1486dd1 100644 --- a/src/bits.md +++ b/src/bits.md @@ -1,7 +1,7 @@ N | MASK | ENV | TXN | DB | PUT | DBI | NODE | PAGE | --|---------|-----------|--------------|----------|-----------|------------|---------|----------| 0 |0000 0001|ALLOC_CACHE|TXN_FINISHED | | |DBI_DIRTY |F_BIGDATA|P_BRANCH -1 |0000 0002|ALLOC_GC |TXN_ERROR |REVERSEKEY| |DBI_STALE |F_SUBDATA|P_LEAF +1 |0000 0002|ALLOC_GC |TXN_ERROR |REVERSEKEY|F_SUBDATA |DBI_STALE |F_SUBDATA|P_LEAF 2 |0000 0004|ALLOC_NEW |TXN_DIRTY |DUPSORT | |DBI_FRESH |F_DUPDATA|P_OVERFLOW 3 |0000 0008| |TXN_SPILLS |INTEGERKEY| |DBI_CREAT | |P_META 4 |0000 0010| |TXN_HAS_CHILD |DUPFIXED |NOOVERWRITE|DBI_VALID | |P_DIRTY diff --git a/src/internals.h b/src/internals.h index 81e3fc79..23544689 100644 --- a/src/internals.h +++ b/src/internals.h @@ -371,7 +371,7 @@ typedef struct MDBX_meta { typedef struct MDBX_page { union { struct MDBX_page *mp_next; /* for in-memory list of freed pages */ - uint64_t mp_txnid; /* txnid during which the page has been COW-ed */ + uint64_t mp_txnid; /* txnid that committed this page */ }; uint16_t mp_leaf2_ksize; /* key size if this is a LEAF2 page */ #define P_BRANCH 0x01 /* branch page */