Move causal read reply processing into sub-function

This makes the clientReply a lot easier to comprehend.
This commit is contained in:
Markus Mäkelä
2018-04-04 15:38:50 +03:00
parent 465a17d439
commit dc338ff3f2
2 changed files with 20 additions and 8 deletions

View File

@ -159,6 +159,7 @@ private:
void log_master_routing_failure(bool found, mxs::SRWBackend& old_master,
mxs::SRWBackend& curr_master);
bool handle_causal_read_reply(GWBUF *writebuf, mxs::SRWBackend& backend);
GWBUF* add_prefix_wait_gtid(SERVER *server, GWBUF *origin);
void correct_packet_sequence(GWBUF *buffer);
GWBUF* discard_master_wait_gtid_result(GWBUF *buffer);