diff options
author | Poornima G <pgurusid@redhat.com> | 2017-10-10 14:45:03 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2017-10-18 14:15:05 +0000 |
commit | 77271e9c1efab628d00bc66803be923f451c0bfa (patch) | |
tree | 4e4183568a2fdda702ae5cdcd4624a53fc39b1cf /xlators/mgmt/glusterd/src/glusterd-utils.c | |
parent | e848410ab6d13871be6b57101788ea5183efe75c (diff) |
gfproxyd: Let glusterd manage gfproxy daemon
Updates: #242
BUG: 1428063
Change-Id: Iaaf2edf99b2ecc75f6d30762c752a6d445c1c826
Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index 623a3841f89..22f5865007f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -58,6 +58,7 @@ #include "glusterd-quotad-svc.h" #include "glusterd-snapd-svc.h" #include "glusterd-bitd-svc.h" +#include "glusterd-gfproxyd-svc.h" #include "glusterd-server-quorum.h" #include "quota-common-utils.h" #include "common-utils.h" @@ -670,6 +671,7 @@ glusterd_volinfo_new (glusterd_volinfo_t **volinfo) glusterd_snapdsvc_build (&new_volinfo->snapd.svc); glusterd_tierdsvc_build (&new_volinfo->tierd.svc); + glusterd_gfproxydsvc_build (&new_volinfo->gfproxyd.svc); pthread_mutex_init (&new_volinfo->reflock, NULL); *volinfo = glusterd_volinfo_ref (new_volinfo); @@ -3519,6 +3521,7 @@ glusterd_spawn_daemons (void *opaque) glusterd_restart_rebalance (conf); ret = glusterd_snapdsvc_restart (); ret = glusterd_tierdsvc_restart (); + ret = glusterd_gfproxydsvc_restart (); return ret; } @@ -12542,19 +12545,6 @@ glusterd_get_gfproxy_client_volfile (glusterd_volinfo_t *volinfo, } void -glusterd_get_gfproxyd_volfile (glusterd_volinfo_t *volinfo, - char *path, int path_len) -{ - char workdir[PATH_MAX] = {0, }; - glusterd_conf_t *priv = THIS->private; - - GLUSTERD_GET_VOLUME_DIR (workdir, volinfo, priv); - - snprintf (path, path_len, "%s/%s.gfproxyd.vol", workdir, - volinfo->volname); -} - -void glusterd_get_rebalance_volfile (glusterd_volinfo_t *volinfo, char *path, int path_len) { |