Merge branch '2.3' into 2.4

This commit is contained in:
Markus Mäkelä
2020-07-24 08:01:53 +03:00
3 changed files with 24 additions and 10 deletions

View File

@ -553,9 +553,19 @@ bool RWSplitSession::route_session_write(GWBUF* querybuf, uint8_t command, uint3
}
else
{
MXS_ERROR("Failed to execute session command in %s (%s)",
backend->name(),
backend->uri());
backend->close();
if (m_config.master_failure_mode == RW_FAIL_INSTANTLY && backend == m_current_master)
{
MXS_ERROR("Failed to execute session command in Master: %s (%s)",
backend->name(), backend->uri());
return false;
}
else
{
MXS_ERROR("Failed to execute session command in %s (%s)",
backend->name(), backend->uri());
}
}
}
}