summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-utils.c
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2016-12-08 16:48:55 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2017-01-17 20:05:11 -0800
commit2c03c753fe77dfadb7660ecb39fe0bbb6bad026f (patch)
tree1300d52cbdef689cfd9c75cff9e792ca7b06a1f6 /xlators/mgmt/glusterd/src/glusterd-utils.c
parentc822e354e16646adf18bbc5123798663faa543b2 (diff)
glusterd: Change the volfile to have readdir-ahead as a child
of dht As mentioned in feature page http://review.gluster.org/#/c/16090/ readdir-ahead will be optionally placed below dht. There are two options: 1. performance.readdir-ahead 2. performance.parallel-readdir If only option is enabled, then readdir ahead is placed at its original place as an ancestor of dht. If both the options 1 and 2 are enabled then readdir ahead is placed as a child of dht. Also changes have been made to retain the rebalance, quotad, snapd vol files to remain unchanged. Change-Id: I0adf0b476fcbf91251f5a2fee2241786a3d8255a BUG: 1401812 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/16072 Reviewed-by: Raghavendra G <rgowdapp@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-utils.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c
index 7d1835236fe..c408f12c10d 100644
--- a/xlators/mgmt/glusterd/src/glusterd-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-utils.c
@@ -11028,22 +11028,6 @@ glusterd_enable_default_options (glusterd_volinfo_t *volinfo, char *option)
* }
* */
- /* readdir-ahead needs to be enabled for new volumes with
- * >= gluster version 3.7
- */
- if (!option || !strcmp ("performance.readdir-ahead", option)) {
- ret = dict_set_dynstr_with_alloc (volinfo->dict,
- "performance.readdir-ahead", "on");
- if (ret) {
- gf_msg (this->name, GF_LOG_ERROR, errno,
- GD_MSG_DICT_SET_FAILED,
- "Failed to set option "
- "'performance.readdir-ahead' on volume "
- "%s", volinfo->volname);
- goto out;
- }
- }
-
/* Option 'features.quota-deem-statfs' should not be turned off
* with 'gluster volume reset <VOLNAME>', since quota features
* can be reset only with 'gluster volume quota <VOLNAME>