MXS-3054: Prevent pooling of DCBs with inbound data
If a DCB is expecting a response from the server, it must not be placed into the connection pool. This prevents the case where unexpected responses would be delivered to DCBs taken out of the connection pool.
This commit is contained in:
@ -61,6 +61,7 @@ void Backend::close(close_type type)
|
||||
/** Clean operation counter in bref and in SERVER */
|
||||
if (is_waiting_result())
|
||||
{
|
||||
m_dcb->valid_for_pool = false;
|
||||
clear_state(WAITING_RESULT);
|
||||
}
|
||||
clear_state(IN_USE);
|
||||
|
Reference in New Issue
Block a user