Pass modutil function state as a struct
This allows the type to change without changing it at the call sites.
This commit is contained in:
@ -15,6 +15,8 @@
|
||||
#include "readwritesplit.hh"
|
||||
#include "rwsplit_ps.hh"
|
||||
|
||||
#include <maxscale/modutil.h>
|
||||
|
||||
|
||||
/** Enum for tracking client reply state */
|
||||
enum reply_state_t
|
||||
@ -50,15 +52,15 @@ public:
|
||||
bool execute_session_command();
|
||||
bool write(GWBUF* buffer, response_type type = EXPECT_RESPONSE);
|
||||
|
||||
void set_skip_packet(bool state);
|
||||
bool get_skip_packet() const;
|
||||
void set_modutil_state(const modutil_state& state);
|
||||
modutil_state get_modutil_state() const;
|
||||
|
||||
private:
|
||||
reply_state_t m_reply_state;
|
||||
BackendHandleMap m_ps_handles; /**< Internal ID to backend PS handle mapping */
|
||||
bool m_skip; /**< Used to store the state of the EOF packet
|
||||
* calculation for result sets when the result
|
||||
* contains very large rows */
|
||||
modutil_state m_modutil_state; /**< Used to store the state of the EOF packet
|
||||
* calculation for result sets when the result
|
||||
* contains very large rows */
|
||||
};
|
||||
|
||||
typedef std::tr1::shared_ptr<RWBackend> SRWBackend;
|
||||
|
||||
Reference in New Issue
Block a user