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

View File

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