summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.c
diff options
context:
space:
mode:
authorAnuradha Talur <atalur@redhat.com>2016-08-25 11:46:25 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-09-01 10:22:39 -0700
commitbefae0b48729894282b5b8b174907e24779c3442 (patch)
tree1f43412cb788a40ddc547e15fe71e16f39fd1442 /xlators/cluster/afr/src/afr.c
parent68b23745602e4cc6317d6dce72ed0392d4174972 (diff)
afr: Consume compound fops in afr transaction
Change-Id: Ib06ece3cce1b10d28d6d2953da28444f5c2457ad BUG: 1290304 Signed-off-by: Anuradha Talur <atalur@redhat.com> Reviewed-on: http://review.gluster.org/15014 Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr.c')
-rw-r--r--xlators/cluster/afr/src/afr.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index bf5a0d16fc7..24526313e89 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -210,6 +210,9 @@ reconfigure (xlator_t *this, dict_t *options)
out);
GF_OPTION_RECONF ("locking-scheme", priv->locking_scheme, options, str,
out);
+ GF_OPTION_RECONF ("use-compound-fops", priv->use_compound_fops,
+ options, bool,
+ out);
GF_OPTION_RECONF ("granular-entry-heal", priv->esh_granular, options,
bool, out);
@@ -479,6 +482,8 @@ init (xlator_t *this)
GF_OPTION_INIT ("pre-op-compat", priv->pre_op_compat, bool, out);
GF_OPTION_INIT ("locking-scheme", priv->locking_scheme, str, out);
+ GF_OPTION_INIT ("use-compound-fops", priv->use_compound_fops,
+ bool, out);
GF_OPTION_INIT ("granular-entry-heal", priv->esh_granular, bool, out);
GF_OPTION_INIT ("eager-lock", priv->eager_lock, bool, out);
@@ -1004,5 +1009,12 @@ struct volume_options options[] = {
.description = "If this option is enabled, i/o will fail even if "
"one of the bricks is down in the replicas",
},
+ { .key = {"use-compound-fops"},
+ .type = GF_OPTION_TYPE_BOOL,
+ .default_value = "no",
+ .description = "Use compound fops framework to modify afr "
+ "transaction such that network roundtrips are "
+ "reduced, thus improving the performance.",
+ },
{ .key = {NULL} },
};