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

Function set_read_error

sql/sql_repl.cc:910–945  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

908}
909
910void set_read_error(binlog_send_info *info, int error)
911{
912 if (error == LOG_READ_EOF)
913 {
914 return;
915 }
916 info->error= ER_MASTER_FATAL_ERROR_READING_BINLOG;
917 switch (error) {
918 case LOG_READ_BOGUS:
919 info->errmsg= "bogus data in log event";
920 break;
921 case LOG_READ_TOO_LARGE:
922 info->errmsg= "log event entry exceeded max_allowed_packet; "
923 "Increase max_allowed_packet on master";
924 break;
925 case LOG_READ_IO:
926 info->errmsg= "I/O error reading log event";
927 break;
928 case LOG_READ_MEM:
929 info->errmsg= "memory allocation failed reading log event";
930 break;
931 case LOG_READ_TRUNC:
932 info->errmsg= "binlog truncated in the middle of event; "
933 "consider out of disk space on master";
934 break;
935 case LOG_READ_CHECKSUM_FAILURE:
936 info->errmsg= "event read from binlog did not pass crc check";
937 break;
938 case LOG_READ_DECRYPT:
939 info->errmsg= "event decryption failure";
940 break;
941 default:
942 info->errmsg= "unknown error reading log event on the master";
943 break;
944 }
945}
946
947
948/**

Callers 3

send_eventsFunction · 0.85
send_engine_eventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected