Need to mark the DCB dcb_errhandle_called indicator if the router error handler is not called.
This commit is contained in:
@ -396,12 +396,18 @@ static int gw_read_backend_event(DCB *dcb) {
|
|||||||
"Session will be closed.");
|
"Session will be closed.");
|
||||||
|
|
||||||
if (rsession)
|
if (rsession)
|
||||||
|
{
|
||||||
router->handleError(router_instance,
|
router->handleError(router_instance,
|
||||||
rsession,
|
rsession,
|
||||||
errbuf,
|
errbuf,
|
||||||
dcb,
|
dcb,
|
||||||
ERRACT_REPLY_CLIENT,
|
ERRACT_REPLY_CLIENT,
|
||||||
&succp);
|
&succp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dcb->dcb_errhandle_called = true;
|
||||||
|
}
|
||||||
gwbuf_free(errbuf);
|
gwbuf_free(errbuf);
|
||||||
LOGIF(LD, (skygw_log_write(
|
LOGIF(LD, (skygw_log_write(
|
||||||
LOGFILE_DEBUG,
|
LOGFILE_DEBUG,
|
||||||
|
Reference in New Issue
Block a user