MXS-1503: Remove false debug assertion

It is possible, and perfectly OK, for the new master to be in use at the
same time the old master is. This is the case if one of the slaves is
promoted as the master.
This commit is contained in:
Markus Mäkelä 2018-03-31 10:32:57 +03:00
parent caa5fe89bb
commit 07821970ff
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -716,7 +716,6 @@ static void log_master_routing_failure(RWSplitSession *rses, bool found,
{
/** We found a master but it's not the same connection */
ss_dassert(!rses->rses_config.master_reconnection);
ss_dassert(!curr_master->in_use());
ss_dassert(old_master != curr_master);
sprintf(errmsg, "Master server changed from '%s' to '%s'",
old_master->name(), curr_master->name());