MXS-2014 Rename mxs_log_priority_is_enabled
- Renamed to mxs_log_is_priority_enabled - That function instead of the macro is now consistently used
This commit is contained in:
@ -747,7 +747,7 @@ static uint32_t resolve_query_type(parsing_info_t *pi, THD* thd)
|
||||
|
||||
if (skygw_stmt_causes_implicit_commit(lex, &set_autocommit_stmt))
|
||||
{
|
||||
if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
if (sql_command_flags[lex->sql_command] &
|
||||
CF_IMPLICT_COMMIT_BEGIN)
|
||||
@ -771,7 +771,7 @@ static uint32_t resolve_query_type(parsing_info_t *pi, THD* thd)
|
||||
|
||||
if (set_autocommit_stmt == 0)
|
||||
{
|
||||
if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
MXS_INFO("Disable autocommit : implicit START TRANSACTION"
|
||||
" before executing the next command.");
|
||||
|
@ -4602,7 +4602,7 @@ static int32_t qc_sqlite_get_type_mask(GWBUF* pStmt, uint32_t* pType_mask)
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report query type");
|
||||
}
|
||||
@ -4631,7 +4631,7 @@ static int32_t qc_sqlite_get_operation(GWBUF* pStmt, int32_t* pOp)
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report query operation");
|
||||
}
|
||||
@ -4660,7 +4660,7 @@ static int32_t qc_sqlite_get_created_table_name(GWBUF* pStmt, char** pzCreated_t
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report created tables");
|
||||
}
|
||||
@ -4689,7 +4689,7 @@ static int32_t qc_sqlite_is_drop_table_query(GWBUF* pStmt, int32_t* pIs_drop_tab
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report whether query is drop table");
|
||||
}
|
||||
@ -4722,7 +4722,7 @@ static int32_t qc_sqlite_get_table_names(GWBUF* pStmt,
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report what tables are accessed");
|
||||
}
|
||||
@ -4765,7 +4765,7 @@ static int32_t qc_sqlite_query_has_clause(GWBUF* pStmt, int32_t* pHas_clause)
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report whether the query has a where clause");
|
||||
}
|
||||
@ -4795,7 +4795,7 @@ static int32_t qc_sqlite_get_database_names(GWBUF* pStmt, char*** ppzDatabase_na
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report what databases are accessed");
|
||||
}
|
||||
@ -4824,7 +4824,7 @@ static int32_t qc_sqlite_get_prepare_name(GWBUF* pStmt, char** pzPrepare_name)
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report the name of a prepared statement");
|
||||
}
|
||||
@ -4855,7 +4855,7 @@ int32_t qc_sqlite_get_field_info(GWBUF* pStmt, const QC_FIELD_INFO** ppInfos, ui
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report field info");
|
||||
}
|
||||
@ -4886,7 +4886,7 @@ int32_t qc_sqlite_get_function_info(GWBUF* pStmt, const QC_FUNCTION_INFO** ppInf
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report function info");
|
||||
}
|
||||
@ -4916,7 +4916,7 @@ int32_t qc_sqlite_get_preparable_stmt(GWBUF* pStmt, GWBUF** pzPreparable_stmt)
|
||||
{
|
||||
rv = QC_RESULT_OK;
|
||||
}
|
||||
else if (MXS_LOG_PRIORITY_IS_ENABLED(LOG_INFO))
|
||||
else if (mxs_log_is_priority_enabled(LOG_INFO))
|
||||
{
|
||||
log_invalid_data(pStmt, "cannot report preperable statement");
|
||||
}
|
||||
|
Reference in New Issue
Block a user