Fix to bug http://bugs.skysql.com/show_bug.cgi?id=488. SHOW VARIABLES was treated as if it was session write command. Instead it is a read-only query. Changed to route that to master.
This commit is contained in:
@ -1451,7 +1451,7 @@ static int routeQuery(
|
||||
|
||||
if (succp) /*< Have DCB of the target backend */
|
||||
{
|
||||
if ((ret = target_dcb->func.write(target_dcb, querybuf)) == 1)
|
||||
if ((ret = target_dcb->func.write(target_dcb, gwbuf_clone(querybuf))) == 1)
|
||||
{
|
||||
backend_ref_t* bref;
|
||||
|
||||
|
Reference in New Issue
Block a user