mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
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.
This commit is contained in:
parent
f5f21315d2
commit
38587d7d28
@ -1100,7 +1100,7 @@ WalSndLoop(void)
|
|||||||
ping_sent = true;
|
ping_sent = true;
|
||||||
/* Try to flush pending output to the client */
|
/* Try to flush pending output to the client */
|
||||||
if (pq_flush_if_writable() != 0)
|
if (pq_flush_if_writable() != 0)
|
||||||
break;
|
goto send_failure;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user