diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2012-04-27 16:15:12 +0530 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-05-08 04:09:31 -0700 |
commit | f233e26f99decc0b2552ed10cd81c30c684139ac (patch) | |
tree | 84911afe8f19baf19dc31cf3aa94aa5881a45936 /xlators/mgmt | |
parent | 44a1857e544f64e10e8bfb4641bedd841910a6c6 (diff) |
mgmt/gluster: Load index xlator on brick always
Change-Id: I56e4fce83a6bd557a3d0dc115a7dd0cd699328e0
BUG: 816941
Signed-off-by: Pranith Kumar K <pranithk@gluster.com>
Reviewed-on: http://review.gluster.com/3239
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volgen.c | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c index 38070ea7436..7639607dc53 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volgen.c +++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c @@ -1694,23 +1694,20 @@ server_graph_builder (volgen_graph_t *graph, glusterd_volinfo_t *volinfo, return -1; } - if (glusterd_is_volume_replicate (volinfo)) { - xl = volgen_graph_add (graph, "features/index", volname); - if (!xl) - return -1; - - snprintf (index_basepath, sizeof (index_basepath), "%s/%s", - path, ".glusterfs/indices"); - ret = xlator_set_option (xl, "index-base", index_basepath); - if (ret) - return -1; + xl = volgen_graph_add (graph, "features/index", volname); + if (!xl) + return -1; - ret = check_and_add_debug_xl (graph, set_dict, volname, - "index"); - if (ret) - return -1; + snprintf (index_basepath, sizeof (index_basepath), "%s/%s", + path, ".glusterfs/indices"); + ret = xlator_set_option (xl, "index-base", index_basepath); + if (ret) + return -1; - } + ret = check_and_add_debug_xl (graph, set_dict, volname, + "index"); + if (ret) + return -1; xl = volgen_graph_add (graph, "features/marker", volname); if (!xl) |