Always ignore EPIPE errors

There's no reason to not ignore EPIPE errors in debug builds.
This commit is contained in:
Markus Mäkelä 2019-03-14 20:08:13 +02:00
parent 09dc92973e
commit 29b8d12be3
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1873,14 +1873,7 @@ static int gw_write(DCB* dcb, GWBUF* writeq, bool* stop_writing)
if (written < 0)
{
*stop_writing = true;
#if defined (SS_DEBUG)
if (saved_errno != EAGAIN
&& saved_errno != EWOULDBLOCK)
#else
if (saved_errno != EAGAIN
&& saved_errno != EWOULDBLOCK
&& saved_errno != EPIPE)
#endif
if (saved_errno != EAGAIN && saved_errno != EWOULDBLOCK && saved_errno != EPIPE)
{
MXS_ERROR("Write to %s %s in state %s failed: %d, %s",
DCB_STRTYPE(dcb),