summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-03-13 07:03:42 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2020-03-13 07:03:42 +0200
commit7b082fb099348da664cf9b35f75eab54deba3b29 (patch)
treeac25dd4e66ac6c851f960956eccf6db6ff1bf0ad
parent7f36300df56da317a46aff1f58b6cdc0e5727cf6 (diff)
parent3ab33c6c929ca615e73465f638a96bdec74adfcf (diff)
downloadmariadb-git-7b082fb099348da664cf9b35f75eab54deba3b29.tar.gz
Merge 5.5 into 10.1
-rw-r--r--client/mysqlbinlog.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc
index 11dc98943dd..71a08132e9f 100644
--- a/client/mysqlbinlog.cc
+++ b/client/mysqlbinlog.cc
@@ -1,6 +1,6 @@
/*
Copyright (c) 2000, 2014, Oracle and/or its affiliates.
- Copyright (c) 2009, 2014, MariaDB
+ Copyright (c) 2009, 2020, MariaDB
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
@@ -161,7 +161,7 @@ enum Exit_status {
*/
static Annotate_rows_log_event *annotate_event= NULL;
-void free_annotate_event()
+static void free_annotate_event()
{
if (annotate_event)
{
@@ -871,7 +871,7 @@ static bool print_row_event(PRINT_EVENT_INFO *print_event_info, Log_event *ev,
print_event_info->m_table_map_ignored.get_table(table_id);
bool skip_event= (ignored_map != NULL);
- /*
+ /*
end of statement check:
i) destroy/free ignored maps
ii) if skip event
@@ -882,21 +882,21 @@ static bool print_row_event(PRINT_EVENT_INFO *print_event_info, Log_event *ev,
*/
if (is_stmt_end)
{
- /*
+ /*
Now is safe to clear ignored map (clear_tables will also
delete original table map events stored in the map).
*/
if (print_event_info->m_table_map_ignored.count() > 0)
print_event_info->m_table_map_ignored.clear_tables();
- /*
+ /*
If there is a kept Annotate event and all corresponding
rbr-events were filtered away, the Annotate event was not
freed and it is just the time to do it.
*/
- free_annotate_event();
+ free_annotate_event();
- /*
+ /*
One needs to take into account an event that gets
filtered but was last event in the statement. If this is
the case, previous rows events that were written into