Error out on send failure in walsender loop.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 38587d7d286faeec83bdbb89ff34eeee5eabb23e
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-03-04T13:43:27Z
Releases: 9.3.4
Error out on send failure in walsender loop.

I changed the loop in 9.3 to use "goto send_failure" instead of "break" on
errors, but I missed this one case. It was a relatively harmless bug: if
the flush fails once it will most likely fail again as soon as we try to
flush the output again. But it's a bug nevertheless.

Report and fix by Andres Freund.

Files

PathChange+/−
src/backend/replication/walsender.c modified +1 −1