Test use for cacnonical query function. Effective in debug build only.

This commit is contained in:
VilhoRaatikka
2014-08-19 09:39:40 +03:00
parent fb3a950a18
commit 13dfd34d5d

View File

@ -1322,6 +1322,23 @@ static int routeQuery(
}
}
return_ret:
#if defined(SS_DEBUG)
if (mysql != NULL && true)
{
char* canonical_query_str;
canonical_query_str = skygw_get_canonical(mysql, querystr);
if (canonical_query_str != NULL)
{
LOGIF(LT, (skygw_log_write(
LOGFILE_TRACE,
"Canonical version: %s",
canonical_query_str)));
free(canonical_query_str);
}
}
#endif
if (plainsqlbuf != NULL)
{
gwbuf_free(plainsqlbuf);
@ -3647,4 +3664,3 @@ static BACKEND *get_root_master(backend_ref_t *servers, int router_nservers) {
}
return master_host;
}