2001-02-17 13:19:19 +01:00
|
|
|
/*********************************************************************
|
|
|
|
Debug utilities for Innobase.
|
|
|
|
|
|
|
|
(c) 1994, 1995 Innobase Oy
|
|
|
|
|
|
|
|
Created 1/30/1994 Heikki Tuuri
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
#include "univ.i"
|
|
|
|
|
|
|
|
/* This is used to eliminate compiler warnings */
|
|
|
|
ulint ut_dbg_zero = 0;
|
|
|
|
|
|
|
|
/* If this is set to TRUE all threads will stop into the next assertion
|
|
|
|
and assert */
|
|
|
|
ibool ut_dbg_stop_threads = FALSE;
|
|
|
|
|
|
|
|
/* Null pointer used to generate memory trap */
|
|
|
|
|
|
|
|
ulint* ut_dbg_null_ptr = NULL;
|
2004-03-12 12:46:26 +01:00
|
|
|
|
|
|
|
const char* ut_dbg_msg_assert_fail =
|
|
|
|
"InnoDB: Assertion failure in thread %lu in file %s line %lu\n";
|
|
|
|
const char* ut_dbg_msg_trap =
|
|
|
|
"InnoDB: We intentionally generate a memory trap.\n"
|
2004-05-11 10:05:02 +02:00
|
|
|
"InnoDB: Submit a detailed bug report to http://bugs.mysql.com.\n"
|
2004-03-12 12:46:26 +01:00
|
|
|
"InnoDB: If you get repeated assertion failures or crashes, even\n"
|
|
|
|
"InnoDB: immediately after the mysqld startup, there may be\n"
|
|
|
|
"InnoDB: corruption in the InnoDB tablespace. See section 6.1 of\n"
|
|
|
|
"InnoDB: http://www.innodb.com/ibman.php about forcing recovery.\n";
|
|
|
|
|
|
|
|
const char* ut_dbg_msg_stop =
|
|
|
|
"InnoDB: Thread %lu stopped in file %s line %lu\n";
|