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

Method check_write_error

sql/log.cc:3188–3210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3186}
3187
3188bool Event_log::check_write_error(THD *thd)
3189{
3190 DBUG_ENTER("MYSQL_BIN_LOG::check_write_error");
3191
3192 bool checked= FALSE;
3193
3194 if (likely(!thd->is_error()))
3195 DBUG_RETURN(checked);
3196
3197 switch (thd->get_stmt_da()->sql_errno())
3198 {
3199 case ER_TRANS_CACHE_FULL:
3200 case ER_STMT_CACHE_FULL:
3201 case ER_ERROR_ON_WRITE:
3202 case EE_LOCAL_TMP_SPACE_FULL:
3203 case EE_GLOBAL_TMP_SPACE_FULL:
3204 case ER_BINLOG_LOGGING_IMPOSSIBLE:
3205 checked= TRUE;
3206 break;
3207 }
3208
3209 DBUG_RETURN(checked);
3210}
3211
3212
3213/*

Callers

nothing calls this directly

Calls 3

sql_errnoMethod · 0.80
get_stmt_daMethod · 0.80
is_errorMethod · 0.45

Tested by

no test coverage detected