diff options
author | shishir gowda <shishirng@gluster.com> | 2010-11-12 04:15:38 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-11-13 07:02:22 -0800 |
commit | 0bd8ecda6554e20336112febf1ade9e1d66bea8e (patch) | |
tree | 4098d39d6589b2ba18cc5555bca41a8561391e9f /glusterfsd/src | |
parent | 7b8015edf8ac2fc33e486d2ef66b01c53c200d60 (diff) |
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 <shishirng@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
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
Diffstat (limited to 'glusterfsd/src')
-rw-r--r-- | glusterfsd/src/glusterfsd-mgmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |