• unknown's avatar
    BUG#28618 (Skipping into the middle of a group with · e9adcac2
    unknown authored
    SQL_SLAVE_SKIP_COUNTER is possible):
    
    By setting the SQL_SLAVE_SKIP_COUNTER it was possible to start the
    from the middle of a group. This patch adds code so that events that
    do not end a statement are ignored instead of skip counted when the
    slave skip counter is 1.
    
    
    sql/log_event.cc:
      Adding code so that for rows log events where the STMT_END_F is clear
      and for table map events, the event is ignored when the slave skip
      counter is 1 instead of skip counted, or described another way, the
      slave skip counter can only be decreased from 1 to 0 when the
      STMT_END_F flag is set.
    sql/log_event.h:
      Adding functions Table_map_log_event::do_shall_skip() and
      Rows_log_event::do_shall_skip().
    e9adcac2
log_event.cc 248 KB