减少percentile线程在停止时候休眠10s导致数据库空载下也停止耗时长的问题

This commit is contained in:
zhang_xubo
2022-08-29 17:14:32 +08:00
parent 7a8ae4b0e3
commit ce7b9365a8

View File

@ -220,6 +220,7 @@ NON_EXEC_STATIC void PercentileMain()
pgstat_report_activity(STATE_IDLE, NULL);
t_thrd.percentile_cxt.need_reset_timer = true;
g_instance.stat_cxt.force_process = false;
if (t_thrd.percentile_cxt.need_exit) break;
sleep(SLEEP_INTERVAL);
}
elog(LOG, "instrumention percentile ended");