Backport query queue changes to 2.3

Backported the changes that convert the query queue in readwritesplit into
a proper queue. This changes combines both
5e3198f8313b7bb33df386eb35986bfae1db94a3 and
6042a53cb31046b1100743723567906c5d8208e2 into one commit.
This commit is contained in:
Markus Mäkelä
2019-04-04 16:55:32 +03:00
parent 556c83f83a
commit 6421af1bb4
3 changed files with 31 additions and 44 deletions

View File

@ -320,7 +320,7 @@ bool RWSplitSession::route_single_stmt(GWBUF* querybuf)
else if (target->has_session_commands())
{
// We need to wait until the session commands are executed
m_query_queue = gwbuf_append(m_query_queue, gwbuf_clone(querybuf));
m_query_queue.emplace_back(gwbuf_clone(querybuf));
MXS_INFO("Queuing query until '%s' completes session command", target->name());
}
else