mdbx: rework functions for meta-pages, split-off non-volatile, more const.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2022-02-09 18:10:08 +03:00
parent ef7b4289c0
commit 2b6fd968d2
3 changed files with 217 additions and 214 deletions

View File

@@ -445,7 +445,7 @@ typedef struct MDBX_meta {
#define MDBX_DATASIGN_WEAK 1u
#define SIGN_IS_STEADY(sign) ((sign) > MDBX_DATASIGN_WEAK)
#define META_IS_STEADY(meta) \
SIGN_IS_STEADY(unaligned_peek_u64(4, (meta)->mm_datasync_sign))
SIGN_IS_STEADY(unaligned_peek_u64_volatile(4, (meta)->mm_datasync_sign))
uint32_t mm_datasync_sign[2];
/* txnid that committed this page, the second of a two-phase-update pair */