Need to mark the DCB dcb_errhandle_called indicator if the router error handler is not called.

This commit is contained in:
counterpoint
2015-09-18 09:19:32 +01:00
parent f3560512ff
commit e507933c48

View File

@ -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,