1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00
dbug/dbug.c:
  dbug naming conventions
include/my_dbug.h:
  unused function
This commit is contained in:
unknown
2008-02-05 14:19:53 +01:00
parent cd6a090a78
commit 7e54b96791
5 changed files with 3 additions and 14 deletions

View File

@ -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;

View File

@ -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_)

View File

@ -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);

View File

@ -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;
}

View File

@ -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':