diff options
author | Joseph Fernandes <josferna@redhat.com> | 2015-04-30 16:54:16 +0530 |
---|---|---|
committer | Kaleb KEITHLEY <kkeithle@redhat.com> | 2015-05-01 07:46:18 -0700 |
commit | cfb9ea4dc68440a18b7f07422901a715b00776f0 (patch) | |
tree | 87c7b2c270419ef8851932b53dd532edb916af40 /xlators/mgmt/glusterd | |
parent | 82d78fa3181dff0969ca3b24e2e071ab2b8064d4 (diff) |
glusterd/quota/tiering: Fixing volgen of quotad
The quotad's graph generation was happening wrongly for
tiered volume. The check is been inserted.
Change-Id: I5554bc5280b0fbaec750e9008fdd930ad53a774f
BUG: 1214219
Signed-off-by: Joseph Fernandes <josferna@redhat.com>
Reviewed-on: http://review.gluster.org/10474
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Reviewed-by: Dan Lambright <dlambrig@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index a149e9916df..b6c0e4926d3 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -3452,9 +3452,11 @@ client_graph_builder (volgen_graph_t *graph, glusterd_volinfo_t *volinfo, goto out; if (volinfo->type == GF_CLUSTER_TYPE_TIER) - ret = volume_volgen_graph_build_clusters_tier (graph, volinfo, _gf_false); + ret = volume_volgen_graph_build_clusters_tier + (graph, volinfo, _gf_false); else - ret = volume_volgen_graph_build_clusters (graph, volinfo, _gf_false); + ret = volume_volgen_graph_build_clusters + (graph, volinfo, _gf_false); if (ret == -1) goto out; @@ -4449,8 +4451,12 @@ build_quotad_graph (volgen_graph_t *graph, dict_t *mod_dict) if (ret) goto out; - ret = volume_volgen_graph_build_clusters (&cgraph, voliter, - _gf_true); + if (voliter->type == GF_CLUSTER_TYPE_TIER) + ret = volume_volgen_graph_build_clusters_tier + (&cgraph, voliter, _gf_true); + else + ret = volume_volgen_graph_build_clusters + (&cgraph, voliter, _gf_true); if (ret) { ret = -1; goto out; |