From 266df1a7d660dc0b824e6e60903536aff9242f4b Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 7 Sep 2010 09:12:38 +0000 Subject: socket.c: more detailed info about mismatched msg type Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur 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/socket/src/socket.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'rpc') diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c index d3167fe0b72..9e85c3ca902 100644 --- a/rpc/rpc-transport/socket/src/socket.c +++ b/rpc/rpc-transport/socket/src/socket.c @@ -1309,10 +1309,16 @@ __socket_read_frag (rpc_transport_t *this) ret = __socket_read_request (this); } else if (priv->incoming.msg_type == REPLY) { ret = __socket_read_reply (this); + } else if (priv->incoming.msg_type == GF_UNIVERSAL_ANSWER) { + gf_log ("rpc", GF_LOG_ERROR, + "older version of protocol/process trying to " + "connect from %s. use newer verison on that node", + this->peerinfo.identifier); } else { gf_log ("rpc", GF_LOG_ERROR, - "wrong MSG-TYPE (%d) received", - priv->incoming.msg_type); + "wrong MSG-TYPE (%d) received from %s", + priv->incoming.msg_type, + this->peerinfo.identifier); ret = -1; } -- cgit