summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-transaction.c
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2016-11-07 14:47:34 +0530
committerPranith Kumar Karampuri <pkarampu@redhat.com>2016-11-26 07:34:59 -0800
commit6be7bd936eb30aa8d2b908061f60e1534e797657 (patch)
tree139a406d1bdc849ad7ad0658aca0c9b0768afafb /xlators/cluster/afr/src/afr-transaction.c
parent2fe8ba52108e94268bc816ba79074a96c4538271 (diff)
cluster/afr: Fix bugs in [f]inodelk/[f]entrylk
Problems: 1) Inodelk is not taking quorum into account 2) finodelk, [f]entrylk are not implemented correctly 3) By default afr doesn't go for non-blocking parallel locks. Fix: Implemented a common framework which can be used by [f]inodelk/[f]entrylk. Used quorum for the same. Change-Id: I239f13875a065298630d266941df10cfa3addc85 BUG: 1369077 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/15802 Tested-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Ravishankar N <ravishankar@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/cluster/afr/src/afr-transaction.c')
-rw-r--r--xlators/cluster/afr/src/afr-transaction.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c
index f81932b0c8c..4906921ca6a 100644
--- a/xlators/cluster/afr/src/afr-transaction.c
+++ b/xlators/cluster/afr/src/afr-transaction.c
@@ -136,14 +136,6 @@ afr_needs_changelog_update (afr_local_t *local)
return _gf_false;
}
-static int32_t
-afr_quorum_errno (afr_private_t *priv)
-{
- if (priv->quorum_reads)
- return ENOTCONN;
- return EROFS;
-}
-
int
__afr_txn_write_fop (call_frame_t *frame, xlator_t *this)
{