From 4b373b233d62ad9ac13a694f3a31b9b1bc4f0298 Mon Sep 17 00:00:00 2001 From: Leo Yuriev Date: Tue, 23 Aug 2016 14:56:06 +0300 Subject: [PATCH] mdbx: minor cleanup mdbx_setup_debug(). Change-Id: I1d246420431518c1e6253fbdc2e6beeedbd8c4b6 --- mdbx.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mdbx.c b/mdbx.c index 7281147f..fae09fbd 100644 --- a/mdbx.c +++ b/mdbx.c @@ -49,12 +49,11 @@ mdbx_setup_debug(int flags, MDBX_debug_func* logger, long edge_txn) { mdb_runtime_flags = flags; if (logger != (MDBX_debug_func*) MDBX_DBG_DNT) mdb_debug_logger = logger; + if (edge_txn != (long) MDBX_DBG_DNT) { #if MDB_DEBUG - if (edge_txn != (long) MDBX_DBG_DNT) mdb_debug_edge = edge_txn; -#else - (void) edge_txn; #endif + } return ret; }