Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita0c8514

Browse files
committed
Shut down WAL receiver if it's still running at end of recovery. We used to
just check that it's not running and PANIC if it was, but that can rightfullyhappen if recovery stops at recovery target.
1 parentea964a4 commita0c8514

File tree

1 file changed

+4
-5
lines changed
  • src/backend/access/transam

1 file changed

+4
-5
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6611,12 +6611,11 @@ StartupXLOG(void)
66116611
}
66126612

66136613
/*
6614-
*If we launched aWAL receiver,it should be gone by now. It will trump
6615-
*overthe startup checkpointand subsequent records if it's still alive,
6616-
*so be extra sure thatit'sgone.
6614+
*KillWAL receiver,if it's still running, before we continue to write
6615+
* the startup checkpointrecord. It will trump over the checkpoint and
6616+
*subsequent records ifit'sstill alive when we start writing WAL.
66176617
*/
6618-
if (WalRcvInProgress())
6619-
elog(PANIC,"wal receiver still active");
6618+
ShutdownWalRcv();
66206619

66216620
/*
66226621
* We don't need the latch anymore. It's not strictly necessary to disown

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp