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

Method dbcb_resp_short

handlersocket/hstcpsvr_worker.cpp:189–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189void
190hstcpsvr_conn::dbcb_resp_short(uint32_t code, const char *msg)
191{
192 write_ui32(cstate.writebuf, code);
193 const size_t msglen = strlen(msg);
194 if (msglen != 0) {
195 cstate.writebuf.append_literal("\t1\t");
196 cstate.writebuf.append(msg, msg + msglen);
197 } else {
198 cstate.writebuf.append_literal("\t1");
199 }
200 cstate.writebuf.append_literal("\n");
201}
202
203void
204hstcpsvr_conn::dbcb_resp_short_num(uint32_t code, uint32_t value)

Callers 7

cmd_insert_internalMethod · 0.80
cmd_sql_internalMethod · 0.80
database.cppFile · 0.80
cmd_execMethod · 0.80
execute_lineMethod · 0.80
do_exec_on_indexMethod · 0.80
do_authorizationMethod · 0.80

Calls 3

write_ui32Function · 0.85
append_literalMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected