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

Function unexpected_error_code

sql/log_event_server.cc:370–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370inline bool unexpected_error_code(int unexpected_error)
371{
372 switch (unexpected_error)
373 {
374 case ER_NET_READ_ERROR:
375 case ER_NET_ERROR_ON_WRITE:
376 case ER_QUERY_INTERRUPTED:
377 case ER_STATEMENT_TIMEOUT:
378 case ER_CONNECTION_KILLED:
379 case ER_SERVER_SHUTDOWN:
380 case ER_NEW_ABORTING_CONNECTION:
381 return(TRUE);
382 default:
383 return(FALSE);
384 }
385}
386
387
388/**

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected