Skip to content

Commit a472ae1

Browse files
committed
Fix Hot Standby feedback sending when streaming busily.
Commit 6f60fdd accidentally removed a call to XLogWalRcvSendHSFeedback() after flushing received WAL to disk. The consequence is that when walsender is busy streaming WAL, it doesn't send HS feedback messages. One is sent if nothing is received from the master for 100ms, but if there's a steady stream of WAL, it never happens. Backpatch to 9.3. Andres Freund and Amit Kapila
1 parent 61bee9f commit a472ae1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/backend/replication/walreceiver.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,10 @@ XLogWalRcvFlush(bool dying)
10071007

10081008
/* Also let the master know that we made some progress */
10091009
if (!dying)
1010+
{
10101011
XLogWalRcvSendReply(false, false);
1012+
XLogWalRcvSendHSFeedback(false);
1013+
}
10111014
}
10121015
}
10131016

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy