| 1312 | |
| 1313 | |
| 1314 | static void |
| 1315 | give_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 | /* |
no test coverage detected