diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2014-01-16 01:24:41 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-02-27 21:28:32 -0800 |
commit | a1bd3d295d9aa96011cff1d1f2915f26559118e7 (patch) | |
tree | 91f58ff56bdabfb8fa01db912620985599b0d405 /rpc | |
parent | 7098d6adb08e74ead6bcce7bc9c5a1c0419a819e (diff) |
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>
Diffstat (limited to 'rpc')
-rw-r--r-- | rpc/rpc-transport/socket/src/socket.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c index a33e02ad834..c5e8b889f88 100644 --- a/rpc/rpc-transport/socket/src/socket.c +++ b/rpc/rpc-transport/socket/src/socket.c @@ -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; |