MXS-2038: Fix debug assertion
A query that is classified as a write but has a hint that tells to route it to a slave is not unexpected ever since the 2.1 version of MaxScale.
This commit is contained in:
@ -729,7 +729,6 @@ SRWBackend RWSplitSession::get_target_backend(backend_type_t btype,
|
|||||||
|
|
||||||
if (name) /*< Choose backend by name from a hint */
|
if (name) /*< Choose backend by name from a hint */
|
||||||
{
|
{
|
||||||
mxb_assert(btype != BE_MASTER);
|
|
||||||
btype = BE_SLAVE;
|
btype = BE_SLAVE;
|
||||||
rval = get_hinted_backend(name);
|
rval = get_hinted_backend(name);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user