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

Function give_error_start_pos_missing_in_binlog

sql/sql_repl.cc:1314–1333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1312
1313
1314static void
1315give_error_start_pos_missing_in_binlog(int *err, const char **errormsg,
1316 rpl_gtid *error_gtid)
1317{
1318 rpl_gtid binlog_gtid;
1319
1320 if (mysql_bin_log.lookup_domain_in_binlog_state(error_gtid->domain_id,
1321 &binlog_gtid) &&
1322 binlog_gtid.seq_no >= error_gtid->seq_no)
1323 {
1324 *errormsg= "Requested slave GTID state not found in binlog. The slave has "
1325 "probably diverged due to executing erroneous transactions";
1326 *err= ER_GTID_POSITION_NOT_FOUND_IN_BINLOG2;
1327 }
1328 else
1329 {
1330 *errormsg= "Requested slave GTID state not found in binlog";
1331 *err= ER_GTID_POSITION_NOT_FOUND_IN_BINLOG;
1332 }
1333}
1334
1335
1336/*

Callers 2

send_event_to_slaveFunction · 0.85

Calls 1

Tested by

no test coverage detected