summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-09-07 09:12:38 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-07 08:42:30 -0700
commit266df1a7d660dc0b824e6e60903536aff9242f4b (patch)
treef46005f648cc4d50a7b9fb3af5df3c7d8c8ef973 /rpc
parentdb83e51918472c9f2bff7771edad6738acafbc26 (diff)
socket.c: more detailed info about mismatched msg type
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@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/socket/src/socket.c10
1 files changed, 8 insertions, 2 deletions
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;
}