mdbx: minor cleanup mdbx_setup_debug().

Change-Id: I1d246420431518c1e6253fbdc2e6beeedbd8c4b6
This commit is contained in:
Leo Yuriev 2016-08-23 14:56:06 +03:00
parent ae92d0d671
commit 4b373b233d

5
mdbx.c
View File

@ -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;
}