- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit65f4976
committed
Add assertion check for WAL receiver state during stream-archive transition
When the startup process switches from streaming to archive as WALsource, we avoid calling ShutdownWalRcv() if the WAL receiver is notstreaming, based on WalRcvStreaming(). WALRCV_STOPPING is a state setby ShutdownWalRcv(), called only by the startup process, meaning that itshould not be possible to reach this state while inWaitForWALToBecomeAvailable().This commit adds an assertion to make sure that a WAL receiver is neverin a WALRCV_STOPPING state should the startup process attempt to resetInstallXLogFileSegmentActive.Idea suggested by Noah Misch.Author: Xuneng Zhou <xunengzhou@gmail.com>Discussion:https://postgr.es/m/19093-c4fff49a608f82a0@postgresql.org1 parente0ca61e commit65f4976
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3698 | 3698 | | |
3699 | 3699 | | |
3700 | 3700 | | |
| 3701 | + | |
| 3702 | + | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
| 3706 | + | |
| 3707 | + | |
| 3708 | + | |
3701 | 3709 | | |
3702 | 3710 | | |
3703 | 3711 | | |
| |||
0 commit comments
Comments
(0)