Ensure that the sync state of the pagewriter remains unchanged during thread recovery

Offering: openGaussDev

More detail:

Match-id-b22f78c1caadc9390b82ac62f29658f024a79e9e
This commit is contained in:
openGaussDev 2022-03-03 19:15:16 +08:00 committed by yanghao
parent 621bd93e25
commit 651da5cbe4
1 changed files with 1 additions and 1 deletions

View File

@ -1217,8 +1217,8 @@ static void HandlePageWriterMainInterrupts()
}
if (t_thrd.pagewriter_cxt.sync_requested) {
t_thrd.pagewriter_cxt.sync_requested = false;
PageWriterSyncWithAbsorption();
t_thrd.pagewriter_cxt.sync_requested = false;
}
/* main thread should finally exit. */