Added blr_check_binlog at router startup if trx_safe is set

Added blr_check_binlog at router startup if trx_safe is set
This commit is contained in:
MassimilianoPinto
2015-08-07 11:59:15 +02:00
parent e5a2e5cd1f
commit 479e4e3203
4 changed files with 115 additions and 60 deletions

View File

@ -966,6 +966,8 @@ int n_bufs = -1, pn_bufs = -1;
if (hdr.ok == 0)
{
spinlock_acquire(&router->lock);
/* set mysql errno to 0 */
router->m_errno = 0;
@ -974,6 +976,8 @@ int n_bufs = -1, pn_bufs = -1;
free(router->m_errmsg);
router->m_errmsg = NULL;
spinlock_release(&router->lock);
int event_limit;
/*