Always ignore EPIPE errors
There's no reason to not ignore EPIPE errors in debug builds.
This commit is contained in:
parent
09dc92973e
commit
29b8d12be3
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user