MXS-1267: Remove DCB cloning

The DCB cloning is no longer needed as the tee filter now does the session
branching by simulating a local client connection.
This commit is contained in:
Markus Mäkelä
2017-05-31 09:40:58 +03:00
parent e64e24a819
commit d59e98e238
6 changed files with 14 additions and 147 deletions

View File

@ -1451,10 +1451,7 @@ static GWBUF* process_response_data(DCB* dcb,
/** Get command which was stored in gw_MySQLWrite_backend */
p = DCB_PROTOCOL(dcb, MySQLProtocol);
if (!DCB_IS_CLONE(dcb))
{
CHK_PROTOCOL(p);
}
CHK_PROTOCOL(p);
/** All buffers processed here are sescmd responses */
gwbuf_set_type(*readbuf, GWBUF_TYPE_SESCMD_RESPONSE);
@ -1600,10 +1597,7 @@ static bool sescmd_response_complete(DCB* dcb)
bool succp;
p = DCB_PROTOCOL(dcb, MySQLProtocol);
if (!DCB_IS_CLONE(dcb))
{
CHK_PROTOCOL(p);
}
CHK_PROTOCOL(p);
protocol_get_response_status(p, &npackets_left, &nbytes_left);