!1758 [bugfix] 修复openGauss数据库关闭时pagewriter主线程退出失败的问题

Merge pull request !1758 from 周斌/master
This commit is contained in:
opengauss-bot 2022-05-25 02:38:02 +00:00 committed by Gitee
commit 4f024161f0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -1263,7 +1263,7 @@ static void ckpt_pagewriter_main_thread_loop(void)
HandlePageWriterMainInterrupts();
candidate_num = get_curr_candidate_nums(false) + get_curr_candidate_nums(true);
if (candidate_num == 0) {
if (candidate_num == 0 && !t_thrd.pagewriter_cxt.shutdown_requested) {
/* wakeup sub thread scan the buffer pool, init the candidate list */
wakeup_sub_thread();
}