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

Function dbug_simulate_tmp_error

sql/rpl_parallel.cc:779–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777
778#ifndef DBUG_OFF
779static int
780dbug_simulate_tmp_error(rpl_group_info *rgi, THD *thd)
781{
782 if (rgi->current_gtid.domain_id == 0 && rgi->current_gtid.seq_no == 100 &&
783 rgi->retry_event_count == 4)
784 {
785 thd->clear_error();
786 thd->get_stmt_da()->reset_diagnostics_area();
787 my_error(ER_LOCK_DEADLOCK, MYF(0));
788 return 1;
789 }
790 return 0;
791}
792#endif
793
794

Callers 2

retry_event_groupFunction · 0.85
rpl_parallel.ccFile · 0.85

Calls 4

my_errorFunction · 0.85
get_stmt_daMethod · 0.80
clear_errorMethod · 0.45

Tested by

no test coverage detected