mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Always treat a standby returning an an invalid flush location as async
This ensures that a standby such as pg_receivexlog will not be selected as sync standby - which would cause the master to block waiting for a location that could never happen. Fujii Masao
This commit is contained in:
@@ -281,6 +281,11 @@ WalReceiverMain(void)
|
||||
walrcv_connect(conninfo, startpoint);
|
||||
DisableWalRcvImmediateExit();
|
||||
|
||||
/* Initialize LogstreamResult, reply_message and feedback_message */
|
||||
LogstreamResult.Write = LogstreamResult.Flush = GetXLogReplayRecPtr(NULL);
|
||||
MemSet(&reply_message, 0, sizeof(reply_message));
|
||||
MemSet(&feedback_message, 0, sizeof(feedback_message));
|
||||
|
||||
/* Loop until end-of-streaming or error */
|
||||
for (;;)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user