]> granicus.if.org Git - postgresql/commit
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:43:27 +0000 (15:43 +0200)
commit38587d7d286faeec83bdbb89ff34eeee5eabb23e
treec507d6d1349cf5c344c6d38ea9d7e664fc02685a
parentf5f21315d25ffcbfe7c6a3fa6ffaad54d31bcde0
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