25#ifndef ROUTING_CLASSIC_CHANGE_USER_SENDER_INCLUDED
26#define ROUTING_CLASSIC_CHANGE_USER_SENDER_INCLUDED
35 using ForwardingProcessor::ForwardingProcessor;
56 static constexpr std::string_view
prefix() {
return "change_user"; }
sends COM_CHANGE_USER from router to the server.
Definition: classic_change_user_sender.h:33
stdx::expected< Result, std::error_code > initial_response()
Definition: classic_change_user_sender.cc:298
stdx::expected< Result, std::error_code > ok()
Definition: classic_change_user_sender.cc:338
TraceEvent * parent_event_
Definition: classic_change_user_sender.h:79
static constexpr std::string_view prefix()
Definition: classic_change_user_sender.h:56
stdx::expected< Result, std::error_code > error()
Definition: classic_change_user_sender.cc:386
std::function< void(const classic_protocol::message::server::Error &err)> on_error_
Definition: classic_change_user_sender.h:77
void stage(Stage stage)
Definition: classic_change_user_sender.h:60
stdx::expected< Result, std::error_code > process() override
Definition: classic_change_user_sender.cc:50
TraceEvent * trace_event_command_
Definition: classic_change_user_sender.h:80
stdx::expected< Result, std::error_code > command()
Definition: classic_change_user_sender.cc:256
Stage stage() const
Definition: classic_change_user_sender.h:61
Stage stage_
Definition: classic_change_user_sender.h:70
bool in_handshake_
Definition: classic_change_user_sender.h:72
ChangeUserSender(MysqlRoutingClassicConnectionBase *conn, bool in_handshake, std::function< void(const classic_protocol::message::server::Error &)> on_error, TraceEvent *parent_event)
Definition: classic_change_user_sender.h:37
stdx::expected< Result, std::error_code > final_response()
Definition: classic_change_user_sender.cc:306
Stage
Definition: classic_change_user_sender.h:47
std::optional< classic_protocol::message::client::ChangeUser > change_user_msg_
Definition: classic_change_user_sender.h:74
a processor base class with helper functions.
Definition: forwarding_processor.h:36
Definition: classic_connection_base.h:257
Definition: expected.h:943
borrowable::message::server::Error< false > Error
Definition: classic_protocol_message.h:1410
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:926
Definition: varlen_sort.h:174
Definition: trace_span.h:34