MXS-1625 Remove RWS RouteInfo

Now uses the one in QueryClassifier directly.
This commit is contained in:
Johan Wikman
2018-04-10 15:24:03 +03:00
parent 9be98df41c
commit 1da33c4423
5 changed files with 6 additions and 29 deletions

View File

@ -12,7 +12,6 @@
*/
#include "rwsplitsession.hh"
#include "routeinfo.hh"
#include <cmath>
@ -138,10 +137,10 @@ int32_t RWSplitSession::routeQuery(GWBUF* querybuf)
current_target = QueryClassifier::CURRENT_TARGET_SLAVE;
}
RouteInfo info = m_qc.update_route_info(current_target, querybuf);
m_qc.update_route_info(current_target, querybuf);
/** No active or pending queries */
if (route_single_stmt(querybuf, info))
if (route_single_stmt(querybuf))
{
rval = 1;
}