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

Method check_write_error

phx_percona/percona/sql/binlog.cc:3677–3697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3675}
3676
3677bool MYSQL_BIN_LOG::check_write_error(THD *thd)
3678{
3679 DBUG_ENTER("MYSQL_BIN_LOG::check_write_error");
3680
3681 bool checked= FALSE;
3682
3683 if (!thd->is_error())
3684 DBUG_RETURN(checked);
3685
3686 switch (thd->get_stmt_da()->sql_errno())
3687 {
3688 case ER_TRANS_CACHE_FULL:
3689 case ER_STMT_CACHE_FULL:
3690 case ER_ERROR_ON_WRITE:
3691 case ER_BINLOG_LOGGING_IMPOSSIBLE:
3692 checked= TRUE;
3693 break;
3694 }
3695 DBUG_PRINT("return", ("checked: %s", YESNO(checked)));
3696 DBUG_RETURN(checked);
3697}
3698
3699void MYSQL_BIN_LOG::set_write_error(THD *thd, bool is_transactional)
3700{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected