mdbx: add MDBX_DBG_DUMP for mdbx_setup_debug().

So, meta-pages and lck-section now will be included into a coredump.
This commit is contained in:
Leo Yuriev
2017-06-15 04:06:07 +03:00
parent 2392c70e2b
commit 71e2fe3df0
4 changed files with 31 additions and 1 deletions

View File

@@ -37,8 +37,11 @@
#if defined(_WIN32) || defined(_WIN64) || defined(_WINDOWS)
#include <io.h>
#else
#include <fcntl.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#endif

View File

@@ -114,7 +114,7 @@ void testcase::db_prepare() {
log_trace(">> db_prepare");
assert(!db_guard);
int mdbx_dbg_opts = MDBX_DBG_ASSERT | MDBX_DBG_JITTER;
int mdbx_dbg_opts = MDBX_DBG_ASSERT | MDBX_DBG_JITTER | MDBX_DBG_DUMP;
if (config.params.loglevel <= logging::trace)
mdbx_dbg_opts |= MDBX_DBG_TRACE;
if (config.params.loglevel <= logging::verbose)