From 9432967da59072447c6beb47bfb48134da557a0d Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Wed, 3 Feb 2016 17:39:54 +0200 Subject: [PATCH] Don't assert the master server state when routing query to slave When a query is being routed to the slave, it is not necessary to assert that the master server's state is still master. It is possible that the master server changes states while the query is being routed but that doesn't affect the query being currently routed. --- server/modules/routing/readwritesplit/readwritesplit.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/modules/routing/readwritesplit/readwritesplit.c b/server/modules/routing/readwritesplit/readwritesplit.c index a8568806e..71f6ce11f 100644 --- a/server/modules/routing/readwritesplit/readwritesplit.c +++ b/server/modules/routing/readwritesplit/readwritesplit.c @@ -2437,8 +2437,6 @@ static bool route_single_stmt( #if defined(SS_EXTRA_DEBUG) MXS_INFO("Found DCB for slave."); #endif - ss_dassert(get_root_master_bref(rses) == - rses->rses_master_ref); atomic_add(&inst->stats.n_slave, 1); } else