Error out on send failure in walsender loop.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 4 Mar 2014 13:30:52 +0000 (15:30 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 4 Mar 2014 13:36:05 +0000 (15:36 +0200)
commit7558cc95d31edbf1437321d910562494071c5589
treeec2d2ec5e6e30ca01f3d85e5e3e32abcedac4f3e
parentb89e151054a05f0f6d356ca52e3b725dd0505e53
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.
src/backend/replication/walsender.c