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

Appearance settings

Commit a472ae1

Browse filesBrowse 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
Copy full SHA for a472ae1

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed

‎src/backend/replication/walreceiver.c

Copy file name to clipboardExpand all lines: src/backend/replication/walreceiver.c
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.