Move result start handling into separate function

The largest part of the code deals with the start of a response. Moving
this into a subfunction makes the function clearer as the switch statement
inside a switch statement is removed.
This commit is contained in:
Markus Mäkelä
2019-04-10 16:25:03 +03:00
parent 746bd53668
commit d2ecaa83a6
2 changed files with 54 additions and 45 deletions

View File

@ -142,6 +142,7 @@ public:
}
void process_packets(GWBUF* buffer);
void process_reply_start(mxs::Buffer::iterator it);
// Controlled by the session
ResponseStat& response_stat();