summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-pmap.h
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-10-04 13:51:29 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-10-04 12:52:42 -0700
commit2136876274690bc7377b97ca0ed812a6befafee2 (patch)
treea947b90718b854324c7c66f3bd1571037d119b84 /xlators/mgmt/glusterd/src/glusterd-pmap.h
parent0d31e7e4239d4765198ea6f46b98ba680038f7ad (diff)
glusterd: more sanity checks during restart
* check for validity of pid file before doing pmap search, as in few cases, pmap_signin() may take more time. * remove stale code from 'init()' * update pmap->last_alloc during restore itself to handle glusterd restarts more agnostics to port collisions Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 971 (dynamic volume management) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-pmap.h')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-pmap.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-pmap.h b/xlators/mgmt/glusterd/src/glusterd-pmap.h
index fcad50db8..a87efed5a 100644
--- a/xlators/mgmt/glusterd/src/glusterd-pmap.h
+++ b/xlators/mgmt/glusterd/src/glusterd-pmap.h
@@ -55,7 +55,8 @@ int pmap_registry_bind (xlator_t *this, int port, const char *brickname,
gf_pmap_port_type_t type, void *xprt);
int pmap_registry_remove (xlator_t *this, int port, const char *brickname,
gf_pmap_port_type_t type, void *xprt);
-int
-pmap_registry_search (xlator_t *this, const char *brickname,
- gf_pmap_port_type_t type);
+int pmap_registry_search (xlator_t *this, const char *brickname,
+ gf_pmap_port_type_t type);
+struct pmap_registry *pmap_registry_get (xlator_t *this);
+
#endif