diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2011-04-14 11:53:12 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-14 11:41:26 -0700 |
commit | 4175e092e3521c1f095d6307ea9b05c7c49b02c6 (patch) | |
tree | f530e79b071bff2f3146dba4881ca0abff599137 /xlators/mgmt/glusterd/src/glusterd-op-sm.c | |
parent | 4055c85a23043afdf3ad708d28aedc55805b1043 (diff) |
mgmt/glusterd: restart gsyncd on glusterd restart
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2761 (Restart gsyncd processes on glusterd restart)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2761
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index b1ace26da98..b446f79d0f3 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -1912,6 +1912,8 @@ gsync_status (char *master, char *slave, int *status) } ret = 0; out: + if (file) + fclose (file); return ret; } @@ -2174,7 +2176,7 @@ glusterd_gsync_get_uuid (char *master, char *slave, glusterd_volinfo_t *vol, int ret = 0; glusterd_gsync_slaves_t status = {0, }; char cann_slave[PATH_MAX] = {0, }; - char host_uuid_str[32] = {0}; + char host_uuid_str[64] = {0}; xlator_t *this = NULL; glusterd_conf_t *priv = NULL; @@ -2214,7 +2216,7 @@ glusterd_gsync_get_uuid (char *master, char *slave, glusterd_volinfo_t *vol, static int glusterd_check_gsync_running_local (char *master, char *slave, - gf_boolean_t *is_run) + gf_boolean_t *is_run) { int ret = -1; int ret_status = 0; @@ -4802,6 +4804,7 @@ glusterd_op_gsync_set (dict_t *dict, char **op_errstr, dict_t *rsp_dict) host_uuid, op_errstr); if (ret) goto out; + ret = glusterd_start_gsync (volinfo->volname, slave, host_uuid); } |