MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / check_hs_error

Method check_hs_error

client/hslongrun.cpp:680–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680int
681hs_longrun_thread_hs::check_hs_error(const char *mess, record_value *rec)
682{
683 const int err = cli->get_error_code();
684 if (err == 0) {
685 return 0;
686 }
687 ++stat.runtime_error_count;
688 if (arg.sh.verbose > 0) {
689 const std::string estr = cli->get_error();
690 fprintf(stderr, "RUNTIME_ERROR: op=%c wid=%d %s: %d %s\n",
691 arg.op, arg.id, mess, err, estr.c_str());
692 }
693 if (rec) {
694 rec->unknown_state = true;
695 }
696 return 1;
697}
698
699struct hs_longrun_thread_my : public hs_longrun_thread_base {
700 hs_longrun_thread_my(const arg_type& arg)

Callers

nothing calls this directly

Calls 2

get_error_codeMethod · 0.80
get_errorMethod · 0.80

Tested by

no test coverage detected