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:
parent
b3399dccc4
commit
f6bd9fefa4
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user