Skip to content

Commit 7e3f397

Browse files
author
Konstantin Knizhnik
committed
Prevent duble call of CheckPointReplicationState
1 parent 21f9464 commit 7e3f397

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8021,7 +8021,8 @@ PreCheckPointGuts(int flags)
80218021
static void
80228022
CheckPointGuts(XLogRecPtr checkPointRedo, int flags)
80238023
{
8024-
CheckPointReplicationState(flags);
8024+
if (!(flags & CHECKPOINT_IS_SHUTDOWN))
8025+
CheckPointReplicationState(flags);
80258026

80268027
/* Write out all dirty data in SLRUs and the main buffer pool */
80278028
TRACE_POSTGRESQL_BUFFER_CHECKPOINT_START(flags);

0 commit comments

Comments
 (0)