MXS-1624 Make the QC info object explicit

The query classifier stores information about the statement carried
by a GWBUF in the GWBUF itself. We need to be able to store that
object out side the lifetime of the GWBUF. So, we require that a
query classifier is capable of duplicating references to that object.
This commit is contained in:
Johan Wikman
2018-07-04 11:42:33 +03:00
parent d01db42679
commit 4e168f36f7
3 changed files with 36 additions and 1 deletions

View File

@ -4300,6 +4300,7 @@ static void qc_sqlite_set_server_version(uint64_t version);
static void qc_sqlite_get_server_version(uint64_t* version);
static int32_t qc_sqlite_get_sql_mode(qc_sql_mode_t* sql_mode);
static int32_t qc_sqlite_set_sql_mode(qc_sql_mode_t sql_mode);
static QC_STMT_INFO* qc_sqlite_dup(QC_STMT_INFO* info);
static bool get_key_and_value(char* arg, const char** pkey, const char** pvalue)
{
@ -4958,6 +4959,13 @@ int32_t qc_sqlite_set_sql_mode(qc_sql_mode_t sql_mode)
return rv;
}
QC_STMT_INFO* qc_sqlite_dup(QC_STMT_INFO* info)
{
// TODO: Not implemented yet.
ss_dassert(!true);
return info;
}
/**
* EXPORTS
*/
@ -4991,6 +4999,7 @@ MXS_MODULE* MXS_CREATE_MODULE()
qc_sqlite_get_server_version,
qc_sqlite_get_sql_mode,
qc_sqlite_set_sql_mode,
qc_sqlite_dup
};
static MXS_MODULE info =