alter large_query_threshold value range

This commit is contained in:
zhjc1124
2024-02-08 12:03:53 +00:00
committed by ob-robot
parent 2d98a71efa
commit bd08315faa
3 changed files with 5 additions and 5 deletions

View File

@ -2599,7 +2599,7 @@ OB_NOINLINE int ObSql::handle_large_query(int tmp_ret,
exec_times = plan->stat_.get_execute_count();
total_process_time = plan->stat_.total_process_time_;
if (exec_times > 0
&& (total_process_time / exec_times) > lqt) {
&& (0 != lqt && (total_process_time / exec_times) > lqt)) {
plan->inc_large_querys();
is_large_query = true;
lq_from_plan = true;
@ -2609,7 +2609,7 @@ OB_NOINLINE int ObSql::handle_large_query(int tmp_ret,
//实际编译时间判断是否为大请求
if (OB_SUCC(ret) && is_large_query == false) {
if (OB_PC_LOCK_CONFLICT == tmp_ret
|| elapsed_time > lqt) {
|| (0 != lqt && elapsed_time > lqt)) {
is_large_query = true;
lq_from_plan = false;
}