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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
dcd8098f
Commit
dcd8098f
authored
May 29, 2007
by
aelkin/elkin@dsl-hkibras1-ff5dc300-70.dhcp.inet.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug#22725
merge with 5.0
parent
15374840
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
30 deletions
+32
-30
sql/sql_class.cc
sql/sql_class.cc
+5
-4
sql/sql_class.h
sql/sql_class.h
+27
-26
No files found.
sql/sql_class.cc
View file @
dcd8098f
...
...
@@ -3048,9 +3048,9 @@ void THD::binlog_delete_pending_rows_event()
RETURN VALUE
Error code, or 0 if no error.
*/
int
THD
::
binlog_query
(
THD
::
enum_binlog_query_type
qtype
,
char
const
*
query
,
ulong
query_len
,
bool
is_trans
,
bool
suppress_use
)
int
THD
::
binlog_query
(
THD
::
enum_binlog_query_type
qtype
,
char
const
*
query
,
ulong
query_len
,
bool
is_trans
,
bool
suppress_use
,
THD
::
killed_state
killed_status_arg
)
{
DBUG_ENTER
(
"THD::binlog_query"
);
DBUG_PRINT
(
"enter"
,
(
"qtype=%d, query='%s'"
,
qtype
,
query
));
...
...
@@ -3089,7 +3089,8 @@ int THD::binlog_query(THD::enum_binlog_query_type qtype,
flush the pending rows event if necessary.
*/
{
Query_log_event
qinfo
(
this
,
query
,
query_len
,
is_trans
,
suppress_use
);
Query_log_event
qinfo
(
this
,
query
,
query_len
,
is_trans
,
suppress_use
,
killed_status_arg
);
qinfo
.
flags
|=
LOG_EVENT_UPDATE_TABLE_MAP_VERSION_F
;
/*
Binlog table maps will be irrelevant after a Query_log_event
...
...
sql/sql_class.h
View file @
dcd8098f
...
...
@@ -1079,32 +1079,6 @@ class THD :public Statement,
}
#endif
/* MYSQL_CLIENT */
#ifndef MYSQL_CLIENT
public:
enum
enum_binlog_query_type
{
/*
The query can be logged row-based or statement-based
*/
ROW_QUERY_TYPE
,
/*
The query has to be logged statement-based
*/
STMT_QUERY_TYPE
,
/*
The query represents a change to a table in the "mysql"
database and is currently mapped to ROW_QUERY_TYPE.
*/
MYSQL_QUERY_TYPE
,
QUERY_TYPE_COUNT
};
int
binlog_query
(
enum_binlog_query_type
qtype
,
char
const
*
query
,
ulong
query_len
,
bool
is_trans
,
bool
suppress_use
);
#endif
public:
struct
st_transactions
{
...
...
@@ -1491,6 +1465,33 @@ class THD :public Statement,
void
close_active_vio
();
#endif
void
awake
(
THD
::
killed_state
state_to_set
);
#ifndef MYSQL_CLIENT
enum
enum_binlog_query_type
{
/*
The query can be logged row-based or statement-based
*/
ROW_QUERY_TYPE
,
/*
The query has to be logged statement-based
*/
STMT_QUERY_TYPE
,
/*
The query represents a change to a table in the "mysql"
database and is currently mapped to ROW_QUERY_TYPE.
*/
MYSQL_QUERY_TYPE
,
QUERY_TYPE_COUNT
};
int
binlog_query
(
enum_binlog_query_type
qtype
,
char
const
*
query
,
ulong
query_len
,
bool
is_trans
,
bool
suppress_use
,
THD
::
killed_state
killed_err_arg
=
THD
::
KILLED_NO_VALUE
);
#endif
/*
For enter_cond() / exit_cond() to work the mutex must be got before
enter_cond(); this mutex is then released by exit_cond().
...
...
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