From a11ebc0ec9d0ea81206fc6925775e2eb5c8c8b6c Mon Sep 17 00:00:00 2001 From: cuikaifeng <21268172@qq.com> Date: Fri, 13 Oct 2023 16:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E2=80=9Cdebug=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=BF=AE=E6=94=B9enable=5Fincremental=5Fcheckpoint=20?= =?UTF-8?q?=3D=20on=20->=20off=20=E4=BA=A7=E7=94=9F=20coredump=E2=80=9D=20?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/storage/access/transam/double_write.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gausskernel/storage/access/transam/double_write.cpp b/src/gausskernel/storage/access/transam/double_write.cpp index f0c8496ccd..3a560990a1 100644 --- a/src/gausskernel/storage/access/transam/double_write.cpp +++ b/src/gausskernel/storage/access/transam/double_write.cpp @@ -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)) { -- Gitee