summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2017-06-30 12:52:21 +0530
committerRaghavendra G <rgowdapp@redhat.com>2017-12-13 08:11:37 +0000
commitc26cadd31dfa128c4ec6883f69d654813f351018 (patch)
treefd428b49ec15397920a5ff50974053683f949f4a /xlators/mgmt/glusterd
parent429f2436b33793136836042ccc43ce4cfd7f89f3 (diff)
quick-read: Integrate quick read with upcall and increase cache time
Fixes : #261 Co-author: Subha sree Mohankumar <smohanku@redhat.com> Change-Id: Ie9dd94e86459123663b9b200d92940625ef68eab Signed-off-by: Poornima G <pgurusid@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-set.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
index 8a3f6a49184..34c246ca03b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c
@@ -1701,6 +1701,18 @@ struct volopt_map_entry glusterd_volopt_map[] = {
.op_version = 1,
.flags = VOLOPT_FLAG_CLIENT_OPT
},
+ { .key = "performance.qr-cache-timeout",
+ .voltype = "performance/quick-read",
+ .option = "cache-timeout",
+ .op_version = 1,
+ .flags = VOLOPT_FLAG_CLIENT_OPT
+ },
+ { .key = "performance.cache-invalidation",
+ .voltype = "performance/quick-read",
+ .option = "cache-invalidation",
+ .op_version = GD_OP_VERSION_4_0_0,
+ .flags = VOLOPT_FLAG_CLIENT_OPT
+ },
{ .key = "performance.flush-behind",
.voltype = "performance/write-behind",
.option = "flush-behind",