• unknown's avatar
    MDEV-4506: Parallel replication. · a09d2b10
    unknown authored
    Fix some more parts of old-style position updates.
    Now we save in rgi some coordinates for master log and relay log, so
    that in do_update_pos() we can use the right set of coordinates with
    the right events.
    
    The Rotate_log_event::do_update_pos() is fixed in the parallel case
    to not directly update relay-log.info (as Rotate event runs directly
    in the driver SQL thread, ahead of actual event execution). Instead,
    group_master_log_file is updated as part of do_update_pos() in each
    event execution.
    
    In the parallel case, position updates happen in parallel without
    any ordering, but taking care that position is not updated backwards.
    Since position update happens only after event execution this leads
    to the right result.
    
    Also fix an access-after-free introduced in an earlier commit.
    a09d2b10
log_event.cc 379 KB