diff options
author | Pranith K <pranithk@gluster.com> | 2010-10-05 07:34:45 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-05 06:21:57 -0700 |
commit | 4c7ca7ec15760681703450dc9279a8c3cf8b98c0 (patch) | |
tree | ad3ae14f179fa2309ac8fddcfbd7b13b4622c4af /xlators/mgmt/glusterd/src/glusterd-op-sm.c | |
parent | 6b74f3ec7b6e0fed2e253df456b067fc27049117 (diff) |
mgmt/glusterd: send volume options to friendv3.1.0qa41
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1816 (send volume options in friend add)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1816
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, 10 insertions, 10 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 7eb83a2d338..3b1ea09bd66 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -2920,13 +2920,13 @@ out: void _delete_reconfig_opt (dict_t *this, char *key, data_t *value, void *data) { - + int exists = 0; - - exists = glusterd_check_option_exists (key, NULL); - + + exists = glusterd_check_option_exists(key, NULL); + if (exists == 1) { - gf_log ("", GF_LOG_DEBUG, "deleting dict with key=%s,value=%s", + gf_log ("", GF_LOG_DEBUG, "deleting dict with key=%s,value=%s", key, value->data); dict_del (this, key); } @@ -2937,13 +2937,13 @@ int glusterd_options_reset (glusterd_volinfo_t *volinfo) { int ret = 0; - + gf_log ("", GF_LOG_DEBUG, "Received volume set reset command"); - + GF_ASSERT (volinfo->dict); - - dict_foreach (volinfo->dict, _delete_reconfig_opt, volinfo->dict); - + + dict_foreach (volinfo->dict, _delete_reconfig_opt, volinfo->dict); + ret = glusterd_create_volfiles (volinfo); if (ret) { |