From 0bd8ecda6554e20336112febf1ade9e1d66bea8e Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Fri, 12 Nov 2010 04:15:38 +0000 Subject: Solaris: Fix crash seen in rpc_clnt_reconnect rpc_clnt_set_connected was being called from mgmt_rpc_notify with incorrect argument. The crash was only seen on solaris. Signed-off-by: shishir gowda Signed-off-by: Anand V. Avati BUG: 2013 (Gluster 3.1 should be supported on the current versions of Solaris and OpenSolaris) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2013 --- glusterfsd/src/glusterfsd-mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glusterfsd') diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c index 083a49ebb0c..be8b77f4f09 100644 --- a/glusterfsd/src/glusterfsd-mgmt.c +++ b/glusterfsd/src/glusterfsd-mgmt.c @@ -444,7 +444,7 @@ mgmt_rpc_notify (struct rpc_clnt *rpc, void *mydata, rpc_clnt_event_t event, switch (event) { case RPC_CLNT_CONNECT: - rpc_clnt_set_connected (ctx->mgmt); + rpc_clnt_set_connected (&((struct rpc_clnt*)ctx->mgmt)->conn); ret = glusterfs_volfile_fetch (ctx); if (ret && ctx && (ctx->active == NULL)) { -- cgit