From 465a17d439b9507f17e4445a8b7d3b9b06325265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 4 Apr 2018 12:47:19 +0300 Subject: [PATCH] MXS-1503: Remove false debug assertion It is possible that the routing fails even if master_reconnection is enabled and a second master is available. This is the case when a transaction is open or autocommit is disabled which is what the mxs359_master_switch test tests. --- server/modules/routing/readwritesplit/rwsplit_route_stmt.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc index 2ceceb388..03fb7b4b8 100644 --- a/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc +++ b/server/modules/routing/readwritesplit/rwsplit_route_stmt.cc @@ -746,7 +746,6 @@ void RWSplitSession::log_master_routing_failure(bool found, else if (old_master && curr_master && old_master->in_use()) { /** We found a master but it's not the same connection */ - ss_dassert(!m_config.master_reconnection); ss_dassert(old_master != curr_master); sprintf(errmsg, "Master server changed from '%s' to '%s'", old_master->name(), curr_master->name());