From 858fcc85e5db2ccb0dd1308b5d1711c4170ad6de 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 e9e52ad914..7bc36ff95a 100644 --- a/src/gausskernel/storage/access/transam/double_write.cpp +++ b/src/gausskernel/storage/access/transam/double_write.cpp @@ -795,7 +795,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