• Michael Widenius's avatar
    Moved the remaining variables, that depends on sql execution, from... · 5748eb3e
    Michael Widenius authored
    Moved the remaining variables, that depends on sql execution, from Relay_log_info to rpl_group_info:
    -row_stmt_start_timestamp
    -last_event_start_time
    -long_find_row_note
    -trans_retries
    
    Added slave_executed_entries_lock to protect rli->executed_entries
    Added primitives for thread safe 64 bit increment
    Update rli->executed_entries when event has executed, not when event has been sent to sql execution thread
    
    
    sql/log_event.cc:
      row_stmt_start and long_find_row_note is now in rpl_group_info
    sql/mysqld.cc:
      Added slave_executed_entries_lock to protect rli->executed_entries
    sql/mysqld.h:
      Added slave_executed_entries_lock to protect rli->executed_entries
      Added primitives for thread safe 64 bit increment
    sql/rpl_parallel.cc:
      Update rli->executed_entries when event has executed, not when event has been sent to sql execution thread
    sql/rpl_rli.cc:
      Moved row_stmt_start_timestamp, last_event_start_time and long_find_row_note from Relay_log_info to rpl_group_info
    sql/rpl_rli.h:
      Moved trans_retries, row_stmt_start_timestamp, last_event_start_time and long_find_row_note from Relay_log_info to rpl_group_info
    sql/slave.cc:
      Use rgi for trans_retries and last_event_start_time
      Update rli->executed_entries when event has executed, not when event has been sent to sql execution thread
      Reset trans_retries when object is created
    5748eb3e
slave.cc 219 KB