MXS-1506: Use correct buffer
The GWBUF passed to RWBackend::write must be treated as freed memory if the write succeeds. This means that the original buffer should be stored, not the clone.
This commit is contained in:
@ -961,7 +961,7 @@ bool RWSplitSession::handle_got_target(GWBUF* querybuf, SRWBackend& target, bool
|
|||||||
{
|
{
|
||||||
if (store)
|
if (store)
|
||||||
{
|
{
|
||||||
set_query(send_buf);
|
set_query(querybuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
atomic_add_uint64(&m_router->stats().n_queries, 1);
|
atomic_add_uint64(&m_router->stats().n_queries, 1);
|
||||||
|
Reference in New Issue
Block a user