MXS-2512 Update error information in additional place

An error may be returned directly or as part of a result set.
Both cases must be handled.
This commit is contained in:
Johan Wikman
2019-06-07 11:14:09 +03:00
parent e1b611aa06
commit b222a17ed9
2 changed files with 26 additions and 15 deletions

View File

@ -218,7 +218,6 @@ public:
}
void process_packets(GWBUF* buffer);
void process_reply_start(mxs::Buffer::iterator it);
// Controlled by the session
ResponseStat& response_stat();
@ -245,6 +244,10 @@ private:
bool m_skip_next = false;
Error m_error;
void process_reply_start(mxs::Buffer::iterator it, uint32_t len);
void update_error(mxs::Buffer::iterator it, uint32_t len);
inline bool is_opening_cursor() const
{
return m_opening_cursor;