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
c4837b36
Commit
c4837b36
authored
Mar 18, 2013
by
Sujatha Sivakumar
Browse files
Options
Browse Files
Download
Plain Diff
merge from mysql-5.1 to mysql-5.5
parents
913d6e23
ddc0cff3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
15 deletions
+31
-15
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+31
-15
No files found.
client/mysqlbinlog.cc
View file @
c4837b36
/*
Copyright (c) 2000, 201
2
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -943,20 +943,37 @@ Exit_status process_event(PRINT_EVENT_INFO *print_event_info, Log_event *ev,
case
PRE_GA_DELETE_ROWS_EVENT
:
case
PRE_GA_UPDATE_ROWS_EVENT
:
{
if
(
ev_type
!=
TABLE_MAP_EVENT
)
bool
stmt_end
=
FALSE
;
Table_map_log_event
*
ignored_map
=
NULL
;
if
(
ev_type
==
WRITE_ROWS_EVENT
||
ev_type
==
DELETE_ROWS_EVENT
||
ev_type
==
UPDATE_ROWS_EVENT
)
{
Rows_log_event
*
e
=
(
Rows_log_event
*
)
ev
;
Table_map_log_event
*
ignored_map
=
print_event_info
->
m_table_map_ignored
.
get_table
(
e
->
get_table_id
());
bool
skip_event
=
(
ignored_map
!=
NULL
);
/*
end of statement check:
i) destroy/free ignored maps
ii) if skip event, flush cache now
*/
if
(
e
->
get_flags
(
Rows_log_event
::
STMT_END_F
))
{
Rows_log_event
*
new_ev
=
(
Rows_log_event
*
)
ev
;
if
(
new_ev
->
get_flags
(
Rows_log_event
::
STMT_END_F
))
stmt_end
=
TRUE
;
ignored_map
=
print_event_info
->
m_table_map_ignored
.
get_table
(
new_ev
->
get_table_id
());
}
else
if
(
ev_type
==
PRE_GA_WRITE_ROWS_EVENT
||
ev_type
==
PRE_GA_DELETE_ROWS_EVENT
||
ev_type
==
PRE_GA_UPDATE_ROWS_EVENT
)
{
Old_rows_log_event
*
old_ev
=
(
Old_rows_log_event
*
)
ev
;
if
(
old_ev
->
get_flags
(
Rows_log_event
::
STMT_END_F
))
stmt_end
=
TRUE
;
ignored_map
=
print_event_info
->
m_table_map_ignored
.
get_table
(
old_ev
->
get_table_id
());
}
bool
skip_event
=
(
ignored_map
!=
NULL
);
/*
end of statement check:
i) destroy/free ignored maps
ii) if skip event, flush cache now
*/
if
(
stmt_end
)
{
/*
Now is safe to clear ignored map (clear_tables will also
delete original table map events stored in the map).
...
...
@@ -983,7 +1000,6 @@ Exit_status process_event(PRINT_EVENT_INFO *print_event_info, Log_event *ev,
/* skip the event check */
if
(
skip_event
)
goto
end
;
}
/*
These events must be printed in base64 format, if printed.
base64 format requires a FD event to be safe, so if no FD
...
...
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