socket: don't send notification 'up' on socket_writev failure
Change-Id: If4e4b95fe025a412f25313d83c780046dfec5116 Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com> Reviewed-on: http://review.gluster.org/6716 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
This commit is contained in:
parent
7098d6adb0
commit
a1bd3d295d
@ -1098,7 +1098,8 @@ socket_event_poll_out (rpc_transport_t *this)
|
||||
}
|
||||
pthread_mutex_unlock (&priv->lock);
|
||||
|
||||
ret = rpc_transport_notify (this, RPC_TRANSPORT_MSG_SENT, NULL);
|
||||
if (ret == 0)
|
||||
ret = rpc_transport_notify (this, RPC_TRANSPORT_MSG_SENT, NULL);
|
||||
|
||||
out:
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user