MCPcopy Create free account
hub / github.com/Tencent/phxsql / set_write_error

Method set_write_error

phx_percona/percona/sql/binlog.cc:3699–3727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3697}
3698
3699void MYSQL_BIN_LOG::set_write_error(THD *thd, bool is_transactional)
3700{
3701 DBUG_ENTER("MYSQL_BIN_LOG::set_write_error");
3702
3703 write_error= 1;
3704
3705 if (check_write_error(thd))
3706 DBUG_VOID_RETURN;
3707
3708 if (my_errno == EFBIG)
3709 {
3710 if (is_transactional)
3711 {
3712 my_message(ER_TRANS_CACHE_FULL, ER(ER_TRANS_CACHE_FULL), MYF(MY_WME));
3713 }
3714 else
3715 {
3716 my_message(ER_STMT_CACHE_FULL, ER(ER_STMT_CACHE_FULL), MYF(MY_WME));
3717 }
3718 }
3719 else
3720 {
3721 char errbuf[MYSYS_STRERROR_SIZE];
3722 my_error(ER_ERROR_ON_WRITE, MYF(MY_WME), name,
3723 errno, my_strerror(errbuf, sizeof(errbuf), errno));
3724 }
3725
3726 DBUG_VOID_RETURN;
3727}
3728
3729/**
3730 Find the position in the log-index-file for the given log name.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected