summaryrefslogtreecommitdiffstats
path: root/xlators/cluster
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2018-03-16 20:54:15 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-04-04 03:03:34 +0000
commit09ff538b68cfcfe6b9f222c76ce653bcfecc8b57 (patch)
tree1560bb60aa0ec4dc01bb7f326da597a4ea7c896b /xlators/cluster
parentc7e03a2caae5a776ec55443f15489de8195b9817 (diff)
cluster/dht: enable lookup-optimize by default
Lookup-optimize has been shown to improve create performance. The code has been in the project for several years and is considered stable. Enabling this by default in order to test this in the upstream regression runs. Change-Id: Iab792979ee34f0af4713931e0b5b399c23f65313 updates: bz#1557435 BUG: 1557435 Signed-off-by: N Balachandran <nbalacha@redhat.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r--xlators/cluster/dht/src/dht-rebalance.c4
-rw-r--r--xlators/cluster/dht/src/dht-shared.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c
index b5906f5ec4e..f21a0201042 100644
--- a/xlators/cluster/dht/src/dht-rebalance.c
+++ b/xlators/cluster/dht/src/dht-rebalance.c
@@ -4542,7 +4542,9 @@ gf_defrag_start_crawl (void *data)
ret = syncop_setxattr (this, &loc, fix_layout, 0, NULL, NULL);
if (ret) {
- gf_log (this->name, GF_LOG_ERROR, "fix layout on %s failed",
+ gf_log (this->name, GF_LOG_ERROR,
+ "Failed to set commit hash on %s. "
+ "Rebalance cannot proceed.",
loc.path);
defrag->total_failures++;
ret = -1;
diff --git a/xlators/cluster/dht/src/dht-shared.c b/xlators/cluster/dht/src/dht-shared.c
index 6b89fe797de..b5f790b111b 100644
--- a/xlators/cluster/dht/src/dht-shared.c
+++ b/xlators/cluster/dht/src/dht-shared.c
@@ -976,7 +976,7 @@ struct volume_options options[] = {
},
{ .key = {"lookup-optimize"},
.type = GF_OPTION_TYPE_BOOL,
- .default_value = "off",
+ .default_value = "on",
.description = "This option if set to ON enables the optimization "
"of -ve lookups, by not doing a lookup on non-hashed subvolumes for "
"files, in case the hashed subvolume does not return any result. "