From 86dad2d7271d4d1ba16c89673ff0a82649fa7d5a Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 8 May 2020 02:28:40 +0300 Subject: [PATCH] mdbx: drop obsolete/unused mn_hi & mn_lo. Change-Id: Ie0099c5afa66ccb679b124f3feb095a364519edc --- src/internals.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/internals.h b/src/internals.h index 3745bc1c..4198e4a8 100644 --- a/src/internals.h +++ b/src/internals.h @@ -1235,11 +1235,6 @@ MDBX_INTERNAL_FUNC void mdbx_rthc_thread_dtor(void *ptr); * Used in pages of type P_BRANCH and P_LEAF without P_LEAF2. * We guarantee 2-byte alignment for 'MDBX_node's. * - * mn_lo and mn_hi are used for data size on leaf nodes, and for child - * pgno on branch nodes. On 64 bit platforms, mn_flags is also used - * for pgno. (Branch nodes have no flags). Lo and hi are in host byte - * order in case some accesses can be optimized to 32-bit word access. - * * Leaf node flags describe node contents. F_BIGDATA says the node's * data part is the page number of an overflow page with actual data. * F_DUPDATA and F_SUBDATA can be combined giving duplicate data in @@ -1247,9 +1242,6 @@ MDBX_INTERNAL_FUNC void mdbx_rthc_thread_dtor(void *ptr); typedef struct MDBX_node { #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ union { - struct { - uint16_t mn_lo, mn_hi; /* part of data size or pgno */ - }; uint32_t mn_dsize; uint32_t mn_pgno32; }; @@ -1263,9 +1255,6 @@ typedef struct MDBX_node { union { uint32_t mn_pgno32; uint32_t mn_dsize; - struct { - uint16_t mn_hi, mn_lo; /* part of data size or pgno */ - }; }; #endif /* __BYTE_ORDER__ */