const Result *result_too_many_args(Session *sn, Request *rq) { const char *msg = XP_GetAdminStr(DBT_tooManyArgs); if (msg == NULL) return &Result::out_of_memory; return result_error(sn, rq, "%s", msg); }
void redis_command::logger_result(const redis_result* result) { if (result == NULL) { logger_error("result NULL"); return; } string res; result->to_string(res); logger_error("result type: %d, error: %s, res: [%s], req: [%s]", result->get_type(), result_error(), res.c_str(), request_buf_ ? request_buf_->c_str() : "slice request"); }