Don't print errors with master_failure_mode=error_on_write

The errors are expeted and should not be logged.
This commit is contained in:
Markus Mäkelä 2019-07-23 14:12:58 +03:00
parent 12bd26398f
commit f31f09fc66
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -350,7 +350,7 @@ bool RWSplitSession::route_single_stmt(GWBUF* querybuf)
succp = true;
MXS_INFO("Delaying routing: %s", extract_sql(querybuf).c_str());
}
else
else if (m_config.master_failure_mode != RW_ERROR_ON_WRITE)
{
MXS_ERROR("Could not find valid server for target type %s, closing "
"connection.", route_target_to_string(route_target));