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
77b7ad33
Commit
77b7ad33
authored
Aug 22, 2008
by
Mats Kindahl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixning compiler warnings. Fixing build failure for valgrind platform.
parent
25bb56ac
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
include/my_global.h
include/my_global.h
+3
-0
sql/log.cc
sql/log.cc
+0
-2
sql/sql_class.cc
sql/sql_class.cc
+6
-4
sql/sql_class.h
sql/sql_class.h
+2
-2
No files found.
include/my_global.h
View file @
77b7ad33
...
...
@@ -1130,6 +1130,9 @@ typedef char bool; /* Ordinary boolean values 0 1 */
#define dbug_volatile
#endif
/* Some helper macros */
#define YESNO(X) ((X) ? "yes" : "no")
/* Defines for time function */
#define SCALE_SEC 100
#define SCALE_USEC 10000
...
...
sql/log.cc
View file @
77b7ad33
...
...
@@ -1448,8 +1448,6 @@ static int binlog_prepare(handlerton *hton, THD *thd, bool all)
return
0
;
}
#define YESNO(X) ((X) ? "yes" : "no")
/**
This function is called once after each statement.
...
...
sql/sql_class.cc
View file @
77b7ad33
...
...
@@ -3528,22 +3528,24 @@ int THD::binlog_flush_pending_rows_event(bool stmt_end)
}
#ifndef DBUG_OFF
static
const
char
*
show_query_type
(
THD
::
enum_binlog_query_type
qtype
)
{
switch
(
qtype
)
{
static
char
buf
[
64
];
case
THD
:
:
ROW_QUERY_TYPE
:
return
"ROW"
;
case
THD
:
:
STMT_QUERY_TYPE
:
return
"STMT"
;
case
THD
:
:
MYSQL_QUERY_TYPE
:
return
"MYSQL"
;
default:
sprintf
(
buf
,
"UNKNOWN#%d"
,
qtype
);
return
buf
;
}
static
char
buf
[
64
];
sprintf
(
buf
,
"UNKNOWN#%d"
,
qtype
);
return
buf
;
}
#endif
/*
...
...
sql/sql_class.h
View file @
77b7ad33
...
...
@@ -2100,8 +2100,8 @@ public:
Don't reset binlog format for NDB binlog injector thread.
*/
DBUG_PRINT
(
"debug"
,
(
"temporary_tables: %
d, in_sub_stmt: %d
, system_thread: %s"
,
(
int
)
temporary_tables
,
in_sub_stmt
,
(
"temporary_tables: %
s, in_sub_stmt: %s
, system_thread: %s"
,
YESNO
(
temporary_tables
),
YESNO
(
in_sub_stmt
)
,
show_system_thread
(
system_thread
)));
if
((
temporary_tables
==
NULL
)
&&
(
in_sub_stmt
==
0
)
&&
(
system_thread
!=
SYSTEM_THREAD_NDBCLUSTER_BINLOG
))
...
...
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