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.
This commit is contained in:
Markus Makela 2016-02-03 17:39:54 +02:00
parent e731f6a29e
commit 9432967da5

View File

@ -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