提交 aab17eca 编写于 作者: A Ashwin Agrawal and Xin Zhang 提交者: Ashwin Agrawal

Move ShutdownXLOG() to checkpoint process

BgWriter no more has pendingOpsTable, hence it should not call the
CreateCheckPoint() directly.

Error message was introduced in upstream
ef072219, and the refactoring of ShutdownXLOG()
was introduced in upstream 806a2aee.
上级 0291ff60
......@@ -316,8 +316,6 @@ BackgroundWriterMain(void)
* control back to the sigsetjmp block above
*/
ExitOnAnyError = true;
/* Close down the database */
ShutdownXLOG(0, 0);
DumpFreeSpaceMap(0, 0);
/* Normal exit from the bgwriter server is here */
......
......@@ -361,6 +361,8 @@ CheckpointMain(void)
* control back to the sigsetjmp block above
*/
ExitOnAnyError = true;
/* Close down the database */
ShutdownXLOG(0, 0);
/* Normal exit from the checkpoint server is here */
if (Debug_print_server_processes ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册