Commit 77e1b0c3 authored by Sujatha's avatar Sujatha

MDEV-22317: SIGSEGV in my_free/delete_dynamic in optimized builds (ARIA)

Post push fix.

when "replicate_wild_do_table" and "replicate_wild_ignore_table" filters
and changed dynamically the filter list gets cleared but the corresponding
"wild_do_table_inited" and "wild_ignore_table_inited" flags are not getting
cleared.

Fix: Clear the flags.
parent 89aebdf9
...@@ -412,7 +412,10 @@ Rpl_filter::set_wild_do_table(const char* table_spec) ...@@ -412,7 +412,10 @@ Rpl_filter::set_wild_do_table(const char* table_spec)
int status; int status;
if (wild_do_table_inited) if (wild_do_table_inited)
{
free_string_array(&wild_do_table); free_string_array(&wild_do_table);
wild_do_table_inited= 0;
}
status= parse_filter_rule(table_spec, &Rpl_filter::add_wild_do_table); status= parse_filter_rule(table_spec, &Rpl_filter::add_wild_do_table);
...@@ -435,7 +438,10 @@ Rpl_filter::set_wild_ignore_table(const char* table_spec) ...@@ -435,7 +438,10 @@ Rpl_filter::set_wild_ignore_table(const char* table_spec)
int status; int status;
if (wild_ignore_table_inited) if (wild_ignore_table_inited)
{
free_string_array(&wild_ignore_table); free_string_array(&wild_ignore_table);
wild_ignore_table_inited= 0;
}
status= parse_filter_rule(table_spec, &Rpl_filter::add_wild_ignore_table); status= parse_filter_rule(table_spec, &Rpl_filter::add_wild_ignore_table);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment