MXS-1506: Skip error logging if retrying query

If the query is about to be retried, error logging must be skipped.
This commit is contained in:
Markus Mäkelä
2018-04-09 19:17:36 +03:00
parent 7f05d0ae05
commit 948ff9b5f1

View File

@ -830,6 +830,7 @@ bool RWSplitSession::handle_master_is_target(SRWBackend* dest)
}
else
{
succp = false;
/** The original master is not available, we can't route the write */
if (m_config.master_failure_mode == RW_ERROR_ON_WRITE)
{
@ -840,10 +841,9 @@ bool RWSplitSession::handle_master_is_target(SRWBackend* dest)
m_current_master->close();
}
}
else
else if (!can_retry_query())
{
log_master_routing_failure(succp, m_current_master, target);
succp = false;
}
}