Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-5788

Incorrect free of rgi->deferred_events in parallel replication

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0.8
    • 10.0.9
    • None
    • 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

      Attachments

        Activity

          knielsen Kristian Nielsen created issue -
          knielsen Kristian Nielsen made changes -
          Field Original Value New Value
          Status Open [ 1 ] In Progress [ 3 ]
          knielsen Kristian Nielsen made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 35807 ] MariaDB v2 [ 43109 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 43109 ] MariaDB v3 [ 62160 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 62160 ] MariaDB v4 [ 147587 ]

          People

            knielsen Kristian Nielsen
            knielsen Kristian Nielsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.