From f31f09fc66fd0967a836dad087c0a0c02f007e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 23 Jul 2019 14:12:58 +0300 Subject: [PATCH] Don't print errors with master_failure_mode=error_on_write The errors are expeted and should not be logged. --- server/modules/routing/readwritesplit/rwsplit_route_stmt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc index 53797d280..1ec1d8076 100644 --- a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc +++ b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc @@ -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));