diff options
Diffstat (limited to 'xlators/cluster/dht/src/switch.c')
| -rw-r--r-- | xlators/cluster/dht/src/switch.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/switch.c b/xlators/cluster/dht/src/switch.c index 7c52767f4a9..a721e4c84b4 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;  | 
