MCPcopy Create free account
hub / github.com/MariaDB/server / alter_committed

Function alter_committed

sql/sql_table.cc:10447–10459  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

10445 @param mi Master_info of the replication source
10446*/
10447static 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/**

Callers 1

process_master_stateFunction · 0.85

Calls 2

reset_killedMethod · 0.80
clear_errorMethod · 0.45

Tested by

no test coverage detected