MXS-1625 Use PSManager of QueryClassifier
This commit is contained in:
@ -611,12 +611,12 @@ route_target_t get_target_type(RWSplitSession *rses, GWBUF *buffer,
|
||||
qc_get_operation(buffer) == QUERY_OP_EXECUTE)
|
||||
{
|
||||
std::string id = get_text_ps_id(buffer);
|
||||
*type = rses->m_ps_manager.get_type(id);
|
||||
*type = rses->qc().ps_get_type(id);
|
||||
}
|
||||
else if (mxs_mysql_is_ps_command(*command))
|
||||
{
|
||||
*stmt_id = get_internal_ps_id(rses, buffer);
|
||||
*type = rses->m_ps_manager.get_type(*stmt_id);
|
||||
*type = rses->qc().ps_get_type(*stmt_id);
|
||||
}
|
||||
|
||||
route_target = get_route_target(rses->qc(), *command, *type, buffer->hint);
|
||||
|
@ -325,7 +325,7 @@ bool RWSplitSession::route_session_write(GWBUF *querybuf, uint8_t command, uint3
|
||||
qc_query_is_type(type, QUERY_TYPE_PREPARE_STMT))
|
||||
{
|
||||
gwbuf_set_type(querybuf, GWBUF_TYPE_COLLECT_RESULT);
|
||||
m_ps_manager.store(querybuf, id);
|
||||
m_qc.ps_store(querybuf, id);
|
||||
}
|
||||
|
||||
MXS_INFO("Session write, routing to all servers.");
|
||||
|
@ -118,7 +118,6 @@ public:
|
||||
SlaveResponseList m_slave_responses; /**< Slaves that replied before the master */
|
||||
uint64_t m_sent_sescmd; /**< ID of the last sent session command*/
|
||||
uint64_t m_recv_sescmd; /**< ID of the most recently completed session command */
|
||||
PSManager m_ps_manager; /**< Prepared statement manager*/
|
||||
ClientHandleMap m_ps_handles; /**< Client PS handle to internal ID mapping */
|
||||
ExecMap m_exec_map; /**< Map of COM_STMT_EXECUTE statement IDs to Backends */
|
||||
std::string m_gtid_pos; /**< Gtid position for causal read */
|
||||
|
Reference in New Issue
Block a user