Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7e54b967
Commit
7e54b967
authored
Feb 05, 2008
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
dbug/dbug.c: dbug naming conventions include/my_dbug.h: unused function
parent
cd6a090a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
14 deletions
+3
-14
dbug/dbug.c
dbug/dbug.c
+1
-1
include/my_dbug.h
include/my_dbug.h
+0
-1
include/my_sys.h
include/my_sys.h
+1
-1
mysys/checksum.c
mysys/checksum.c
+0
-8
sql/mysqld.cc
sql/mysqld.cc
+1
-3
No files found.
dbug/dbug.c
View file @
7e54b967
...
...
@@ -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
;
...
...
include/my_dbug.h
View file @
7e54b967
...
...
@@ -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_)
...
...
include/my_sys.h
View file @
7e54b967
...
...
@@ -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
);
...
...
mysys/checksum.c
View file @
7e54b967
...
...
@@ -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
;
}
sql/mysqld.cc
View file @
7e54b967
...
...
@@ -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'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment