!2762 函数instr_stmt_dynamic_change_level内部枚举比较不准确

Merge pull request !2762 from foolishlee/instr_stmt_dynamic_change_level
This commit is contained in:
opengauss-bot
2023-02-10 09:01:33 +00:00
committed by Gitee

View File

@ -2582,7 +2582,7 @@ void instr_stmt_dynamic_change_level()
/* if find user defined statement level, dynamic change the statement track level */ /* if find user defined statement level, dynamic change the statement track level */
StatLevel specified_level = instr_track_stmt_find_level(); StatLevel specified_level = instr_track_stmt_find_level();
if (specified_level <= STMT_TRACK_OFF) { if (specified_level == STMT_TRACK_OFF) {
return; return;
} }
@ -2889,4 +2889,4 @@ Datum standby_statement_history(PG_FUNCTION_ARGS)
Datum standby_statement_history_1v(PG_FUNCTION_ARGS) Datum standby_statement_history_1v(PG_FUNCTION_ARGS)
{ {
return standby_statement_history(fcinfo); return standby_statement_history(fcinfo);
} }