mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:34:12 +08:00
mdbx: minor cleanup mdbx_setup_debug().
Change-Id: I1d246420431518c1e6253fbdc2e6beeedbd8c4b6
This commit is contained in:
parent
ae92d0d671
commit
4b373b233d
5
mdbx.c
5
mdbx.c
@ -49,12 +49,11 @@ mdbx_setup_debug(int flags, MDBX_debug_func* logger, long edge_txn) {
|
|||||||
mdb_runtime_flags = flags;
|
mdb_runtime_flags = flags;
|
||||||
if (logger != (MDBX_debug_func*) MDBX_DBG_DNT)
|
if (logger != (MDBX_debug_func*) MDBX_DBG_DNT)
|
||||||
mdb_debug_logger = logger;
|
mdb_debug_logger = logger;
|
||||||
|
if (edge_txn != (long) MDBX_DBG_DNT) {
|
||||||
#if MDB_DEBUG
|
#if MDB_DEBUG
|
||||||
if (edge_txn != (long) MDBX_DBG_DNT)
|
|
||||||
mdb_debug_edge = edge_txn;
|
mdb_debug_edge = edge_txn;
|
||||||
#else
|
|
||||||
(void) edge_txn;
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user