summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/dht/src
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-07-19 06:10:34 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-07-19 05:11:17 -0700
commit0985f3995e446e23ca6edc380b998581889ae5d0 (patch)
treeb796de0b3b4ee9f033b0c9cb0397c189020fb8fd /xlators/cluster/dht/src
parentddd614192d05c767012fccedb73b30cef5bf4927 (diff)
dht: set 'lookup-unhashed' to ON by default (instead of 'auto').
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 826 (distribute option lookup-unhashed should be on by default) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=826
Diffstat (limited to 'xlators/cluster/dht/src')
-rw-r--r--xlators/cluster/dht/src/dht.c4
-rw-r--r--xlators/cluster/dht/src/nufa.c4
-rw-r--r--xlators/cluster/dht/src/switch.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/xlators/cluster/dht/src/dht.c b/xlators/cluster/dht/src/dht.c
index 8a8a89c88..13f382af1 100644
--- a/xlators/cluster/dht/src/dht.c
+++ b/xlators/cluster/dht/src/dht.c
@@ -279,11 +279,13 @@ init (xlator_t *this)
goto err;
}
- conf->search_unhashed = GF_DHT_LOOKUP_UNHASHED_AUTO;
+ conf->search_unhashed = GF_DHT_LOOKUP_UNHASHED_ON;
if (dict_get_str (this->options, "lookup-unhashed", &temp_str) == 0) {
/* If option is not "auto", other options _should_ be boolean */
if (strcasecmp (temp_str, "auto"))
gf_string2boolean (temp_str, &conf->search_unhashed);
+ else
+ conf->search_unhashed = GF_DHT_LOOKUP_UNHASHED_AUTO;
}
conf->unhashed_sticky_bit = 0;
diff --git a/xlators/cluster/dht/src/nufa.c b/xlators/cluster/dht/src/nufa.c
index 015f8e77b..468b86fd9 100644
--- a/xlators/cluster/dht/src/nufa.c
+++ b/xlators/cluster/dht/src/nufa.c
@@ -565,11 +565,13 @@ init (xlator_t *this)
goto err;
}
- conf->search_unhashed = GF_DHT_LOOKUP_UNHASHED_AUTO;
+ conf->search_unhashed = GF_DHT_LOOKUP_UNHASHED_ON;
if (dict_get_str (this->options, "lookup-unhashed", &temp_str) == 0) {
/* If option is not "auto", other options _should_ be boolean */
if (strcasecmp (temp_str, "auto"))
gf_string2boolean (temp_str, &conf->search_unhashed);
+ else
+ conf->search_unhashed = GF_DHT_LOOKUP_UNHASHED_AUTO;
}
ret = dht_init_subvolumes (this, conf);
diff --git a/xlators/cluster/dht/src/switch.c b/xlators/cluster/dht/src/switch.c
index 7c52767f4..a721e4c84 100644
--- a/xlators/cluster/dht/src/switch.c
+++ b/xlators/cluster/dht/src/switch.c
@@ -895,11 +895,13 @@ init (xlator_t *this)
goto err;
}
- conf->search_unhashed = GF_DHT_LOOKUP_UNHASHED_AUTO;
+ conf->search_unhashed = GF_DHT_LOOKUP_UNHASHED_ON;
if (dict_get_str (this->options, "lookup-unhashed", &temp_str) == 0) {
/* If option is not "auto", other options _should_ be boolean */
if (strcasecmp (temp_str, "auto"))
gf_string2boolean (temp_str, &conf->search_unhashed);
+ else
+ conf->search_unhashed = GF_DHT_LOOKUP_UNHASHED_AUTO;
}
conf->unhashed_sticky_bit = 0;