Fix Hot Standby feedback sending when streaming busily.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 16 Jan 2014 21:05:02 +0000 (23:05 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 16 Jan 2014 21:14:57 +0000 (23:14 +0200)
commite34acac62e848fc144699d18b33865e1d9474dc3
tree5e46bba764f8a3f8d4a6fd38b6830bf4b6025ba0
parent74c32f3455de7bed1a13f1f8b0274a7d43e0e76d
Fix Hot Standby feedback sending when streaming busily.

Commit 6f60fdd7015b032bf49273c99f80913d57eac284 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
src/backend/replication/walreceiver.c