MXS-1780 Store last statement as cloned GWBUF

The last statements of a session are now stored as a cloned
GWBUF instead of as a copy of the SQL.
This commit is contained in:
Johan Wikman
2018-11-05 16:12:10 +02:00
parent 3ccdb508de
commit fa13b8036a
2 changed files with 30 additions and 10 deletions

View File

@ -20,6 +20,7 @@
#include <unordered_set>
#include <vector>
#include <maxscale/buffer.hh>
#include <maxscale/session.h>
#include <maxscale/resultset.hh>
#include <maxscale/utils.hh>
@ -38,7 +39,7 @@ typedef struct SESSION_VARIABLE
} SESSION_VARIABLE;
typedef std::unordered_map<std::string, SESSION_VARIABLE> SessionVarsByName;
typedef std::deque<std::vector<uint8_t>> SessionStmtQueue;
typedef std::deque<std::shared_ptr<GWBUF>> SessionStmtQueue;
typedef std::unordered_set<DCB*> DCBSet;
// Class that holds the session specific filter data