MXS-1780 Make statement retaining session specific

Whether or not a session should retain its statements is now
a property of the session. This in preparation for making the
whole functionality a property that can be enabled and disabled
at runtime, of the service.
This commit is contained in:
Johan Wikman
2018-11-07 10:20:06 +02:00
parent c899f00541
commit dd712a06fa
2 changed files with 38 additions and 23 deletions

View File

@ -100,6 +100,7 @@ public:
using FilterList = std::vector<SessionFilter>;
Session();
~Session();
bool setup_filters(Service* service);
@ -143,9 +144,10 @@ public:
private:
FilterList m_filters;
SessionVarsByName m_variables;
QueryInfos m_last_queries; /*< The N last queries by the client */
int m_current_query = -1; /*< The index of the current query */
DCBSet m_dcb_set; /*< Set of associated backend DCBs */
QueryInfos m_last_queries; /*< The N last queries by the client */
int m_current_query = -1; /*< The index of the current query */
DCBSet m_dcb_set; /*< Set of associated backend DCBs */
bool m_retain_last_statements; /*< Should statement information be stored */
};
}