diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-09-09 02:40:37 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-09 01:47:37 -0700 |
commit | 576d7030430c7a2e68c8454b40ebaa83853f0ba2 (patch) | |
tree | f7f0951954f9b7f869cec22b74e5b6c20b1cefe0 | |
parent | 7c915b6ffcf00fad0fa8e1075bd80ca63de36ea3 (diff) |
do not use pmap_registry_get function, instead use this to get pmap while removing
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1580 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1580
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-pmap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-pmap.c b/xlators/mgmt/glusterd/src/glusterd-pmap.c index b91937276..b94d2c6cd 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) |