Fix to MXS-328: https://mariadb.atlassian.net/browse/MXS-328
Removed gwbuf_free when the write fails.
This commit is contained in:
@ -2586,8 +2586,8 @@ static bool route_single_stmt(
|
|||||||
rses_end_locked_router_action(rses);
|
rses_end_locked_router_action(rses);
|
||||||
goto retblock;
|
goto retblock;
|
||||||
}
|
}
|
||||||
GWBUF* wbuf = gwbuf_clone(querybuf);
|
|
||||||
if ((ret = target_dcb->func.write(target_dcb, wbuf)) == 1)
|
if ((ret = target_dcb->func.write(target_dcb, gwbuf_clone(querybuf))) == 1)
|
||||||
{
|
{
|
||||||
backend_ref_t* bref;
|
backend_ref_t* bref;
|
||||||
|
|
||||||
@ -2601,7 +2601,6 @@ static bool route_single_stmt(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gwbuf_free(wbuf);
|
|
||||||
LOGIF((LE|LT), (skygw_log_write_flush(
|
LOGIF((LE|LT), (skygw_log_write_flush(
|
||||||
LOGFILE_ERROR,
|
LOGFILE_ERROR,
|
||||||
"Error : Routing query failed.")));
|
"Error : Routing query failed.")));
|
||||||
|
|||||||
Reference in New Issue
Block a user