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:
@ -830,6 +830,7 @@ bool RWSplitSession::handle_master_is_target(SRWBackend* dest)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
succp = false;
|
||||||
/** The original master is not available, we can't route the write */
|
/** The original master is not available, we can't route the write */
|
||||||
if (m_config.master_failure_mode == RW_ERROR_ON_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();
|
m_current_master->close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if (!can_retry_query())
|
||||||
{
|
{
|
||||||
log_master_routing_failure(succp, m_current_master, target);
|
log_master_routing_failure(succp, m_current_master, target);
|
||||||
succp = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user