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:
@ -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:
|
||||||
|
Reference in New Issue
Block a user