diff options
author | Junaid <junaid@gluster.com> | 2011-06-13 00:51:10 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-06-16 09:16:23 -0700 |
commit | 1fc2a841ae90b0f29bf8aa39351bd92879ec1f44 (patch) | |
tree | bd02a09276e0c7b3ff0d1c42930bc1ced1a1d506 | |
parent | a121571a2cebd4a7efa5a3a661081c4a53c8c6a8 (diff) |
mgmt/glusterd: Set the generic options in the graph before merging it with the parent graph while building nfs-server volfile.
Signed-off-by: Junaid <junaid@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 3003 (Modification of one of the options of volume is reflected in all the volumes in the nfs-server-volfile)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3003
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 252c4907d7b..58282aecab9 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -1862,20 +1862,20 @@ build_nfs_graph (volgen_graph_t *graph, dict_t *mod_dict) nfs_xprt); ret = build_client_graph (&cgraph, voliter, set_dict); if (ret) - goto out;; - ret = volgen_graph_merge_sub (graph, &cgraph); - if (ret) goto out; if (mod_dict) { dict_copy (mod_dict, set_dict); - ret = volgen_graph_set_options_generic (graph, set_dict, voliter, - nfs_spec_option_handler); + ret = volgen_graph_set_options_generic (&cgraph, set_dict, voliter, + nfs_spec_option_handler); + } else { + ret = volgen_graph_set_options_generic (&cgraph, voliter->dict, voliter, + nfs_spec_option_handler); } - else - ret = volgen_graph_set_options_generic (graph, voliter->dict, voliter, - nfs_spec_option_handler); + ret = volgen_graph_merge_sub (graph, &cgraph); + if (ret) + goto out; } out: |