[MDEV-5788] Incorrect free of rgi->deferred_events in parallel replication Created: 2014-03-04  Updated: 2014-03-07  Resolved: 2014-03-07

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.0.8
Fix Version/s: 10.0.9

Type: Bug Priority: Major
Reporter: Kristian Nielsen Assignee: Kristian Nielsen
Resolution: Fixed Votes: 0
Labels: None


 Description   

Problem reported by nanyi607rao on maria-developers@:

...
else
{
if(!(rgi= new rpl_group_info(rli)))

{ my_error(ER_OUTOFMEMORY, MYF(0), (int)sizeof(*rgi)); return NULL; }

rgi->is_parallel_exec = true;

  • if ((rgi->deferred_events_collecting= rli->mi->rpl_filter->is_on()))
    _ rgi->deferred_events= new Deferred_log_events(rli);
    }
    + if ((rgi->deferred_events_collecting= rli->mi->rpl_filter->is_on()))
    + rgi->deferred_events= new Deferred_log_events(rli);

because rgi->deferred_events was freed in rpl_parallel_thread::free_rgi() if it wasn't NULL



 Comments   
Comment by Kristian Nielsen [ 2014-03-07 ]

Pushed to 10.0

Generated at Thu Feb 08 07:07:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.