Commit 7876d53b authored by unknown's avatar unknown

MDEV-4506: Parallel replication.

Delete any left-over deferred_event from rpl_group_info when
deleting the parent object, to protect against memory leaks.
parent 4bf33945
......@@ -1489,6 +1489,7 @@ rpl_group_info::rpl_group_info(Relay_log_info *rli_)
rpl_group_info::~rpl_group_info()
{
free_annotate_event();
delete deferred_events;
mysql_mutex_destroy(&sleep_lock);
mysql_cond_destroy(&sleep_cond);
}
......
......@@ -592,7 +592,10 @@ struct rpl_group_info
void cleanup_after_session()
{
if (deferred_events)
{
delete deferred_events;
deferred_events= NULL;
}
};
/**
......
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