summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorCsaba Henk <csaba@redhat.com>2012-02-29 10:20:54 +0100
committerVijay Bellur <vijay@gluster.com>2012-03-05 09:17:15 -0800
commit33b9f156e6b6137e33bd9becfe640166986ecc55 (patch)
tree9200f76c5453aaae663ce53262fa6d91a7cdb3ff /xlators
parent5b9d47a3a39fac39e3fbccd4083f2f45c9ce5b49 (diff)
glusterd: mountbroker-geo-replication.* fix
mountbroker-geo-replication.* option's value was always discarded due to bogus control flow Change-Id: I5ec57dd0db9502ba088c42e07e32ac3e15317ce5 BUG: 797702 Signed-off-by: Csaba Henk <csaba@redhat.com> Reviewed-on: http://review.gluster.com/2835 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index d7912c95fa9..0f807ca57bc 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -679,10 +679,11 @@ _install_mount_spec (dict_t *opts, char *key, data_t *value, void *data)
label = strtail (key, "mountbroker-"GEOREP".");
if (label)
georep = _gf_true;
-
- label = strtail (key, "mountbroker-"GHADOOP".");
- if (label)
- ghadoop = _gf_true;
+ else {
+ label = strtail (key, "mountbroker-"GHADOOP".");
+ if (label)
+ ghadoop = _gf_true;
+ }
}
if (!label)