Clean up unexpected error handling in readwritesplit

By using the Error class, the code can be cleaned up and simplified.
This commit is contained in:
Markus Mäkelä
2019-06-14 10:06:38 +03:00
parent 5edfba6623
commit 7dde0edb54
3 changed files with 39 additions and 24 deletions

View File

@ -410,7 +410,7 @@ void RWBackend::process_reply(GWBUF* buffer)
process_packets(buffer);
}
if (get_reply_state() == REPLY_STATE_DONE)
if (get_reply_state() == REPLY_STATE_DONE && is_waiting_result())
{
ack_write();
}