summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-12-20 03:59:02 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-27 20:51:11 -0800
commit2e317d2d35a50a6440865de5445008fd814cd298 (patch)
tree576ae5540134efe8999afb345dfbf11e5060c60f /rpc
parent48f3faaa492b7a6f93e1f3d79cb66b34fd080468 (diff)
rdma : prevent confusing logs when both 'poll_in' and 'poll_err' are received.
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
Diffstat (limited to 'rpc')
-rw-r--r--rpc/rpc-transport/rdma/src/rdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c
index e18702a..8084a86 100644
--- a/rpc/rpc-transport/rdma/src/rdma.c
+++ b/rpc/rpc-transport/rdma/src/rdma.c
@@ -4471,7 +4471,7 @@ rdma_event_handler (int fd, int idx, void *data,
ret = rdma_handshake_pollout (this);
}
- if (!ret && poll_in && priv->tcp_connected) {
+ if (!ret && !poll_err && poll_in && priv->tcp_connected) {
if (priv->handshake.incoming.state == RDMA_HANDSHAKE_COMPLETE) {
gf_log (RDMA_LOG_NAME, GF_LOG_ERROR,
"%s: pollin received on tcp socket (peer: %s) "