placeholder for PRIO_OPT_STATS

This commit is contained in:
obdev
2024-09-19 09:06:34 +00:00
committed by ob-robot
parent 759fe249c6
commit af29faee53
3 changed files with 9 additions and 4 deletions

View File

@ -730,6 +730,7 @@ int ObResourceManagerProxy::check_if_function_exist(const ObString &function_nam
0 == function_name.compare("CLOG_LOW") ||
0 == function_name.compare("CLOG_MID") ||
0 == function_name.compare("CLOG_HIGH") ||
0 == function_name.compare("OPT_STATS") ||
0 == function_name.compare("IMPORT") ||
0 == function_name.compare("EXPORT") ||
0 == function_name.compare("SQL_AUDIT") ||

View File

@ -60,6 +60,9 @@ ObString oceanbase::share::get_io_function_name(ObFunctionType function_type)
case ObFunctionType::PRIO_CLOG_HIGH:
ret_name = ObString("CLOG_HIGH");
break;
case ObFunctionType::PRIO_OPT_STATS:
ret_name = ObString("OPT_STATS");
break;
case ObFunctionType::PRIO_IMPORT:
ret_name = ObString("IMPORT");
break;

View File

@ -41,10 +41,11 @@ enum ObFunctionType : uint8_t
PRIO_CLOG_LOW = 10,
PRIO_CLOG_MID = 11,
PRIO_CLOG_HIGH = 12,
PRIO_IMPORT = 13,
PRIO_EXPORT = 14,
PRIO_OPT_STATS = 13,
PRIO_IMPORT = 14,
PRIO_EXPORT = 15,
/* add new function type here, or you will have compatibility issues. */
PRIO_SQL_AUDIT = 15,
PRIO_SQL_AUDIT = 16,
/* add new function, can learn by "grep -rnI 'CLOG_HIGH' src/" */