• Andrei Elkin's avatar
    Bug #47142 "slave start until" stops 1 event too late in 4.1 to 5.0 replication · 1c0056b3
    Andrei Elkin authored
    When replicating from 4.1 master to 5.0 slave START SLAVE UNTIL can stop too late.
    The necessary in calculating of the beginning of an event the event's length
    did not correspond to the master's genuine information at the event's execution time.
    That piece of info was changed at the event's relay-logging due to binlog_version<4 event
    conversion by IO thread.
    
    Fixed with storing the master genuine Query_log_event size into a new status
    variable at relay-logging of the event. The stored info is extacted at the event
    execution and participate further to caclulate the correct start position of the event
    in the until-pos stopping routine.
    The new status variable's algorithm will be only active when the event comes
    from the master of version < 5.0 (binlog_version < 4).
    1c0056b3
rpl_until.result 5.68 KB