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:
Krishnan Parthasarathi 2014-01-16 01:24:41 +05:30 committed by Anand Avati
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;