Move assertion after error message

Logging the internal state before the assertion makes it easier to figure
out why the assertion failed in the first place.
This commit is contained in:
Markus Mäkelä 2019-04-15 12:07:48 +03:00
parent b3399dccc4
commit f6bd9fefa4
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -303,8 +303,8 @@ void RWBackend::process_packets(GWBUF* result)
case REPLY_STATE_DONE:
// This should never happen
mxb_assert(!true);
MXS_ERROR("Unexpected result state. cmd: 0x%02hhx, len: %u", cmd, len);
mxb_assert(!true);
break;
case REPLY_STATE_RSET_COLDEF: