MXS-2350: Connect on session command with lazy_connect

If a session command is executed when lazy_connect is enabled and no
connections have been created, a connection must be made. This makes sure
that the session isn't closed and that the client receives a response.
This commit is contained in:
Markus Mäkelä
2019-03-04 12:43:43 +02:00
parent 24ea222ed6
commit bfc874dea1
2 changed files with 34 additions and 0 deletions

View File

@ -163,6 +163,7 @@ private:
bool handle_got_target(GWBUF* querybuf, mxs::RWBackend* target, bool store);
void handle_connection_keepalive(mxs::RWBackend* target);
bool prepare_target(mxs::RWBackend* target, route_target_t route_target);
bool create_one_connection();
void retry_query(GWBUF* querybuf, int delay = 1);
bool should_replace_master(mxs::RWBackend* target);