| 3675 | } |
| 3676 | |
| 3677 | bool 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 | |
| 3699 | void MYSQL_BIN_LOG::set_write_error(THD *thd, bool is_transactional) |
| 3700 | { |
nothing calls this directly
no outgoing calls
no test coverage detected