Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
a2ed0364
Commit
a2ed0364
authored
Dec 11, 2013
by
Hallvard Furuseth
Browse files
Replace MDB_node.mn_offset[], to ease debugging.
parent
2ce9ffa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
a2ed0364
...
...
@@ -701,9 +701,11 @@ typedef struct MDB_node {
* They are in host byte order in case that lets some
* accesses be optimized into a 32-bit word access.
*/
#define mn_lo mn_offset[BYTE_ORDER!=LITTLE_ENDIAN]
#define mn_hi mn_offset[BYTE_ORDER==LITTLE_ENDIAN]
/**< part of dsize or pgno */
unsigned
short
mn_offset
[
2
];
/**< storage for #mn_lo and #mn_hi */
#if BYTE_ORDER == LITTLE_ENDIAN
unsigned
short
mn_lo
,
mn_hi
;
/**< part of data size or pgno */
#else
unsigned
short
mn_hi
,
mn_lo
;
#endif
/** @defgroup mdb_node Node Flags
* @ingroup internal
* Flags for node headers.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment