ut0dbg.h:

  Print the failing assertion if it fails; helps to analyze bug reports
parent aad71de1
...@@ -20,7 +20,6 @@ extern ibool ut_dbg_stop_threads; ...@@ -20,7 +20,6 @@ extern ibool ut_dbg_stop_threads;
extern ulint* ut_dbg_null_ptr; extern ulint* ut_dbg_null_ptr;
#define ut_a(EXPR)\ #define ut_a(EXPR)\
{\ {\
ulint dbg_i;\ ulint dbg_i;\
...@@ -32,7 +31,9 @@ extern ulint* ut_dbg_null_ptr; ...@@ -32,7 +31,9 @@ extern ulint* ut_dbg_null_ptr;
os_thread_pf(os_thread_get_curr_id()), IB__FILE__,\ os_thread_pf(os_thread_get_curr_id()), IB__FILE__,\
(ulint)__LINE__);\ (ulint)__LINE__);\
fprintf(stderr,\ fprintf(stderr,\
"InnoDB: We intentionally generate a memory trap.\n");\ "InnoDB: Failing assertion: " #EXPR);\
fprintf(stderr,\
"\nInnoDB: We intentionally generate a memory trap.\n");\
fprintf(stderr,\ fprintf(stderr,\
"InnoDB: Send a detailed bug report to mysql@lists.mysql.com\n");\ "InnoDB: Send a detailed bug report to mysql@lists.mysql.com\n");\
ut_dbg_stop_threads = TRUE;\ ut_dbg_stop_threads = TRUE;\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment