projects
/
platform
/
upstream
/
lmdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b68aa3f
)
Better fix for MDB_DEBUG tweak -- from hbf
author
Howard Chu
<hyc@symas.com>
Thu, 25 Oct 2012 13:55:46 +0000
(06:55 -0700)
committer
Howard Chu
<hyc@symas.com>
Thu, 25 Oct 2012 14:03:25 +0000
(07:03 -0700)
libraries/libmdb/mdb.c
patch
|
blob
|
history
diff --git
a/libraries/libmdb/mdb.c
b/libraries/libmdb/mdb.c
index
091e8ec
..
e1a8689
100644
(file)
--- a/
libraries/libmdb/mdb.c
+++ b/
libraries/libmdb/mdb.c
@@
-297,6
+297,7
@@
static txnid_t mdb_debug_start;
fprintf(stderr, "%s:%d " fmt "\n", __func__, __LINE__, __VA_ARGS__)))
#else
# define DPRINTF(fmt, ...) ((void) 0)
+# define MDB_DEBUG_SKIP
#endif
/** Print a debug string.
* The string is printed literally, with no format processing.
@@
-3683,7
+3684,7
@@
static void
mdb_cursor_pop(MDB_cursor *mc)
{
if (mc->mc_snum) {
-#if
MDB_DEBUG
+#if
ndef MDB_DEBUG_SKIP
MDB_page *top = mc->mc_pg[mc->mc_top];
#endif
mc->mc_snum--;