Allow filters to be used with binlogrouter
Filters can now be used with the binlogrouter to modify the contents of the binlog stream now that the correct function call is used.
This commit is contained in:
@ -2531,7 +2531,7 @@ blr_statistics(ROUTER_INSTANCE *router, ROUTER_SLAVE *slave, GWBUF *queue)
|
||||
*ptr++ = 1;
|
||||
memcpy(ptr, result, len);
|
||||
|
||||
return slave->dcb->func.write(slave->dcb, ret);
|
||||
return MXS_SESSION_ROUTE_REPLY(slave->dcb->session, ret);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2558,7 +2558,7 @@ blr_ping(ROUTER_INSTANCE *router, ROUTER_SLAVE *slave, GWBUF *queue)
|
||||
*ptr++ = 1;
|
||||
*ptr = 0; // OK
|
||||
|
||||
return slave->dcb->func.write(slave->dcb, ret);
|
||||
return MXS_SESSION_ROUTE_REPLY(slave->dcb->session, ret);
|
||||
}
|
||||
|
||||
|
||||
@ -2665,7 +2665,7 @@ blr_send_custom_error(DCB *dcb,
|
||||
/** write error message */
|
||||
memcpy(mysql_payload, mysql_error_msg, strlen(mysql_error_msg));
|
||||
|
||||
return dcb->func.write(dcb, errbuf);
|
||||
return MXS_SESSION_ROUTE_REPLY(dcb->session, errbuf);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user