mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
cleanup
dbug/dbug.c: dbug naming conventions include/my_dbug.h: unused function
This commit is contained in:
@ -2399,7 +2399,7 @@ static void dbug_flush(CODE_STATE *cs)
|
|||||||
|
|
||||||
/* For debugging */
|
/* For debugging */
|
||||||
|
|
||||||
void _db_force_flush()
|
void _db_force_flush_()
|
||||||
{
|
{
|
||||||
CODE_STATE *cs;
|
CODE_STATE *cs;
|
||||||
get_code_state_or_return;
|
get_code_state_or_return;
|
||||||
|
@ -52,7 +52,6 @@ extern void _db_end_(void);
|
|||||||
extern void _db_lock_file_(void);
|
extern void _db_lock_file_(void);
|
||||||
extern void _db_unlock_file_(void);
|
extern void _db_unlock_file_(void);
|
||||||
extern FILE *_db_fp_(void);
|
extern FILE *_db_fp_(void);
|
||||||
extern void _db_force_flush();
|
|
||||||
|
|
||||||
#define DBUG_ENTER(a) struct _db_stack_frame_ _db_stack_frame_; \
|
#define DBUG_ENTER(a) struct _db_stack_frame_ _db_stack_frame_; \
|
||||||
_db_enter_ (a,__FILE__,__LINE__,&_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
|
#ifndef DBUG_OFF
|
||||||
extern void my_debug_put_break_here(void);
|
extern void my_debug_put_break_here(void);
|
||||||
#else
|
#else
|
||||||
#define my_debug_put_break_here() {}
|
#define my_debug_put_break_here() do {} while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern void my_sleep(ulong m_seconds);
|
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)
|
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);
|
crc= (ha_checksum) crc32((uint)crc, pos, length);
|
||||||
#endif /* NOT_USED */
|
|
||||||
DBUG_PRINT("info", ("crc: %lu", (ulong) crc));
|
DBUG_PRINT("info", ("crc: %lu", (ulong) crc));
|
||||||
#ifndef DBUG_OFF
|
|
||||||
if (crc == my_crc_dbug_check)
|
if (crc == my_crc_dbug_check)
|
||||||
my_debug_put_break_here();
|
my_debug_put_break_here();
|
||||||
#endif
|
|
||||||
return crc;
|
return crc;
|
||||||
}
|
}
|
||||||
|
@ -7430,10 +7430,8 @@ mysqld_get_one_option(int optid,
|
|||||||
{
|
{
|
||||||
switch(optid) {
|
switch(optid) {
|
||||||
case '#':
|
case '#':
|
||||||
#ifndef DBUG_OFF
|
|
||||||
DBUG_SET_INITIAL(argument ? argument : default_dbug_option);
|
|
||||||
#endif
|
|
||||||
DEBUGGER_ON;
|
DEBUGGER_ON;
|
||||||
|
DBUG_SET_INITIAL(argument ? argument : default_dbug_option);
|
||||||
opt_endinfo=1; /* unireg: memory allocation */
|
opt_endinfo=1; /* unireg: memory allocation */
|
||||||
break;
|
break;
|
||||||
case 'a':
|
case 'a':
|
||||||
|
Reference in New Issue
Block a user