From 54b71368ef290bc579f113e683a82b09893fb50a Mon Sep 17 00:00:00 2001 From: Varun Shastry Date: Mon, 3 Sep 2012 17:33:46 +0530 Subject: rpc/socket: Wrong Log-File Error-Message Problem: The port changed in rpc-clnt.c:rpc_clnt_reconfig was not being updated to the variable peerinfo.identifier before the logging. Change-Id: Ic56a74738c6f7664e9719b125a014126cea69141 BUG: 847211 Signed-off-by: Varun Shastry Reviewed-on: http://review.gluster.org/3894 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Shishir Gowda Reviewed-by: Anand Avati --- rpc/rpc-transport/socket/src/socket.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpc/rpc-transport/socket/src/socket.c b/rpc/rpc-transport/socket/src/socket.c index 24079a9f8..b043f52ef 100644 --- a/rpc/rpc-transport/socket/src/socket.c +++ b/rpc/rpc-transport/socket/src/socket.c @@ -2010,6 +2010,8 @@ socket_connect_finish (rpc_transport_t *this) if (priv->connected != 0) goto unlock; + get_transport_identifiers (this); + ret = __socket_connect_finish (priv->sock); if (ret == -1 && errno == EINPROGRESS) @@ -2050,7 +2052,6 @@ socket_connect_finish (rpc_transport_t *this) priv->connected = 1; priv->connect_finish_log = 0; event = RPC_TRANSPORT_CONNECT; - get_transport_identifiers (this); } } unlock: -- cgit