From 2e317d2d35a50a6440865de5445008fd814cd298 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Mon, 20 Dec 2010 03:59:02 +0000 Subject: rdma : prevent confusing logs when both 'poll_in' and 'poll_err' are received. Signed-off-by: Amar Tumballi Signed-off-by: Anand V. Avati 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 --- rpc/rpc-transport/rdma/src/rdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpc/rpc-transport') diff --git a/rpc/rpc-transport/rdma/src/rdma.c b/rpc/rpc-transport/rdma/src/rdma.c index e18702ab7..8084a86e9 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) " -- cgit