Skip to content

Commit 77c63bf

Browse files
author
Konstantin Knizhnik
committed
Handle CHECKPOINT_END_OF_RECOVERY in the same way as CHECKPOINT_IS_SHUTDOWN in CheckPointGuts
1 parent 3da009e commit 77c63bf

File tree

1 file changed

+1
-1
lines changed
  • src/backend/access/transam

1 file changed

+1
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7260,7 +7260,7 @@ CheckPointGuts(XLogRecPtr checkPointRedo, int flags)
72607260
* Writing to the WAL during shutdown checkpoint cause Postgres panic.
72617261
* So do it before in PreCheckPointGuts.
72627262
*/
7263-
if (!(flags & CHECKPOINT_IS_SHUTDOWN))
7263+
if (!(flags & (CHECKPOINT_IS_SHUTDOWN|CHECKPOINT_END_OF_RECOVERY)))
72647264
CheckPointBuffers(flags);
72657265

72667266
/* Perform all queued up fsyncs */

0 commit comments

Comments
 (0)