Commit 7e54b967 authored by unknown's avatar unknown

cleanup


dbug/dbug.c:
  dbug naming conventions
include/my_dbug.h:
  unused function
parent cd6a090a
......@@ -2399,7 +2399,7 @@ static void dbug_flush(CODE_STATE *cs)
/* For debugging */
void _db_force_flush()
void _db_force_flush_()
{
CODE_STATE *cs;
get_code_state_or_return;
......
......@@ -52,7 +52,6 @@ extern void _db_end_(void);
extern void _db_lock_file_(void);
extern void _db_unlock_file_(void);
extern FILE *_db_fp_(void);
extern void _db_force_flush();
#define DBUG_ENTER(a) struct _db_stack_frame_ _db_stack_frame_; \
_db_enter_ (a,__FILE__,__LINE__,&_db_stack_frame_)
......
......@@ -871,7 +871,7 @@ extern ha_checksum my_checksum(ha_checksum crc, const uchar *mem,
#ifndef DBUG_OFF
extern void my_debug_put_break_here(void);
#else
#define my_debug_put_break_here() {}
#define my_debug_put_break_here() do {} while(0)
#endif
extern void my_sleep(ulong m_seconds);
......
......@@ -32,17 +32,9 @@ ha_checksum my_crc_dbug_check= 1; /* Unlikely number */
ha_checksum my_checksum(ha_checksum crc, const uchar *pos, size_t length)
{
#ifdef NOT_USED
const uchar *end=pos+length;
for ( ; pos != end ; pos++)
crc=((crc << 8) + *((uchar*) pos)) + (crc >> (8*sizeof(ha_checksum)-8));
#else
crc= (ha_checksum) crc32((uint)crc, pos, length);
#endif /* NOT_USED */
DBUG_PRINT("info", ("crc: %lu", (ulong) crc));
#ifndef DBUG_OFF
if (crc == my_crc_dbug_check)
my_debug_put_break_here();
#endif
return crc;
}
......@@ -7430,10 +7430,8 @@ mysqld_get_one_option(int optid,
{
switch(optid) {
case '#':
#ifndef DBUG_OFF
DBUG_SET_INITIAL(argument ? argument : default_dbug_option);
#endif
DEBUGGER_ON;
DBUG_SET_INITIAL(argument ? argument : default_dbug_option);
opt_endinfo=1; /* unireg: memory allocation */
break;
case 'a':
......
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