Fix Hot Standby feedback sending when streaming busily.
Commit 6f60fdd701
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
This commit is contained in:
parent
61bee9f756
commit
a472ae1e4e
|
@ -1007,7 +1007,10 @@ XLogWalRcvFlush(bool dying)
|
||||||
|
|
||||||
/* Also let the master know that we made some progress */
|
/* Also let the master know that we made some progress */
|
||||||
if (!dying)
|
if (!dying)
|
||||||
|
{
|
||||||
XLogWalRcvSendReply(false, false);
|
XLogWalRcvSendReply(false, false);
|
||||||
|
XLogWalRcvSendHSFeedback(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue