21ab4e
From 059ddebbf98a8ed9de64054629e26d7ded19f88d Mon Sep 17 00:00:00 2001
21ab4e
From: Atin Mukherjee <amukherj@redhat.com>
21ab4e
Date: Mon, 29 May 2017 16:17:23 +0530
21ab4e
Subject: [PATCH 478/486] glusterd: do not load io-threads for replica volume
21ab4e
 by default
21ab4e
21ab4e
This issue was already fixed
21ab4e
https://code.engineering.redhat.com/gerrit/96886 . However while
21ab4e
backporting one of the fixes for rhgs-3.3.0 approved features
21ab4e
https://code.engineering.redhat.com/gerrit/#/c/101418 managed to break
21ab4e
it.
21ab4e
21ab4e
Label: DOWNSTREAM ONLY
21ab4e
21ab4e
Change-Id: Iae59a0336c99257d14ed7ad70bbbe454ede2ee07
21ab4e
BUG: 1456402
21ab4e
Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
21ab4e
Reviewed-on: https://code.engineering.redhat.com/gerrit/107558
21ab4e
Reviewed-by: Ravishankar Narayanankutty <ravishankar@redhat.com>
21ab4e
---
21ab4e
 xlators/mgmt/glusterd/src/glusterd-volgen.c | 1 +
21ab4e
 1 file changed, 1 insertion(+)
21ab4e
21ab4e
diff --git a/xlators/mgmt/glusterd/src/glusterd-volgen.c b/xlators/mgmt/glusterd/src/glusterd-volgen.c
21ab4e
index c112dc8..55cd430 100644
21ab4e
--- a/xlators/mgmt/glusterd/src/glusterd-volgen.c
21ab4e
+++ b/xlators/mgmt/glusterd/src/glusterd-volgen.c
21ab4e
@@ -2559,6 +2559,7 @@ perfxl_option_handler (volgen_graph_t *graph, struct volopt_map_entry *vme,
21ab4e
         if (!strcmp (vme->key, "performance.client-io-threads") &&
21ab4e
             (GF_CLUSTER_TYPE_STRIPE_REPLICATE == volinfo->type ||
21ab4e
              GF_CLUSTER_TYPE_REPLICATE == volinfo->type))
21ab4e
+                return 0;
21ab4e
 
21ab4e
         /* if VKEY_READDIR_AHEAD is enabled and parallel readdir is
21ab4e
          * not enabled then load readdir-ahead here else it will be
21ab4e
-- 
21ab4e
1.8.3.1
21ab4e