!4317 修复 “debug版本修改enable_incremental_checkpoint = on -> off 产生 coredump” 的问题

Merge pull request !4317 from cuikaifeng/ccheckpoint
This commit is contained in:
opengauss_bot
2024-11-25 01:25:20 +00:00
committed by Gitee

View File

@ -797,7 +797,11 @@ static bool dw_batch_file_recycle(dw_batch_file_context *cxt, uint16 pages_to_wr
wait_dw_page_finish_flush(cxt->id);
}
PageWriterSync();
if (USE_CKPT_THREAD_SYNC) {
ProcessSyncRequests();
} else {
PageWriterSync();
}
if (trunc_file) {
if (!LWLockConditionalAcquire(cxt->flush_lock, LW_EXCLUSIVE)) {