In this function, we are going to change info->state to ::COMPLETED. This means we are messaging CA/RA worker that we have binlogged, so our here is finished. @param thd Thread handle @param start_alter_state ALTER replication execution context @param mi Master_info of the replication source */
| 10445 | @param mi Master_info of the replication source |
| 10446 | */ |
| 10447 | static void alter_committed(THD *thd, start_alter_info* info, Master_info *mi) |
| 10448 | { |
| 10449 | start_alter_state tmp= info->state; |
| 10450 | mysql_mutex_lock(&mi->start_alter_lock); |
| 10451 | info->state= start_alter_state::COMPLETED; |
| 10452 | mysql_cond_broadcast(&info->start_alter_cond); |
| 10453 | mysql_mutex_unlock(&mi->start_alter_lock); |
| 10454 | if (tmp == start_alter_state::ROLLBACK_ALTER) |
| 10455 | { |
| 10456 | thd->clear_error(); |
| 10457 | thd->reset_killed(); |
| 10458 | } |
| 10459 | } |
| 10460 | #endif |
| 10461 | |
| 10462 | /** |
no test coverage detected