From 576d7030430c7a2e68c8454b40ebaa83853f0ba2 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Thu, 9 Sep 2010 02:40:37 +0000 Subject: do not use pmap_registry_get function, instead use this to get pmap while removing Signed-off-by: Raghavendra Bhat Signed-off-by: Vijay Bellur BUG: 1580 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1580 --- xlators/mgmt/glusterd/src/glusterd-pmap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-pmap.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-pmap.c b/xlators/mgmt/glusterd/src/glusterd-pmap.c index b91937276e3..b94d2c6cd93 100644 --- a/xlators/mgmt/glusterd/src/glusterd-pmap.c +++ b/xlators/mgmt/glusterd/src/glusterd-pmap.c @@ -226,8 +226,12 @@ pmap_registry_remove (xlator_t *this, int port, { struct pmap_registry *pmap = NULL; int p = 0; + glusterd_conf_t *priv = NULL; - pmap = pmap_registry_get (this); + priv = this->private; + pmap = priv->pmap; + if (!pmap) + goto out; if (port) { if (port > 65535) -- cgit