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-op-sm.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-op-sm.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 28f36d7c268..f04cb2e7466 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -52,6 +52,7 @@ #include <sys/types.h> #include <signal.h> #include <sys/wait.h> +#include "glusterd-gfproxyd-svc-helper.h" extern char local_node_hostname[PATH_MAX]; static int @@ -2175,6 +2176,10 @@ glusterd_options_reset (glusterd_volinfo_t *volinfo, char *key, if (ret) goto out; } + svc = &(volinfo->gfproxyd.svc); + ret = svc->reconfigure (volinfo); + if (ret) + goto out; ret = glusterd_create_volfiles_and_notify_services (volinfo); if (ret) { @@ -2619,6 +2624,11 @@ glusterd_op_set_all_volume_options (xlator_t *this, dict_t *dict, goto out; } + svc = &(volinfo->gfproxyd.svc); + ret = svc->reconfigure (volinfo); + if (ret) + goto out; + ret = glusterd_create_volfiles_and_notify_services (volinfo); if (ret) { gf_msg (this->name, GF_LOG_ERROR, 0, @@ -3019,6 +3029,11 @@ glusterd_op_set_volume (dict_t *dict, char **errstr) if (ret) goto out; } + svc = &(volinfo->gfproxyd.svc); + ret = svc->reconfigure (volinfo); + if (ret) + goto out; + ret = glusterd_create_volfiles_and_notify_services (volinfo); if (ret) { gf_msg (this->name, GF_LOG_ERROR, 0, @@ -3063,6 +3078,11 @@ glusterd_op_set_volume (dict_t *dict, char **errstr) goto out; } + svc = &(volinfo->gfproxyd.svc); + ret = svc->reconfigure (volinfo); + if (ret) + goto out; + ret = glusterd_create_volfiles_and_notify_services (volinfo); if (ret) { gf_msg (this->name, GF_LOG_ERROR, 0, |