From eb04dab9992f8f5d4b2d45e1ca10032fededcff1 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 29 Apr 2014 05:49:21 +0530 Subject: cluster/afr: Fix bugs in quorum implementation - Have common place to perform quorum fop wind check - Check if fop succeeded in a way that matches quorum to avoid marking changelog in split-brain. BUG: 1066996 Change-Id: Ibc5b80e01dc206b2abbea2d29e26f3c60ff4f204 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/7600 Tested-by: Gluster Build System Reviewed-by: Ravishankar N --- xlators/cluster/afr/src/afr-open.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'xlators/cluster/afr/src/afr-open.c') diff --git a/xlators/cluster/afr/src/afr-open.c b/xlators/cluster/afr/src/afr-open.c index f86aa7fd80d..83da86053f4 100644 --- a/xlators/cluster/afr/src/afr-open.c +++ b/xlators/cluster/afr/src/afr-open.c @@ -131,10 +131,6 @@ afr_open (call_frame_t *frame, xlator_t *this, loc_t *loc, int32_t flags, priv = this->private; - if (flags & (O_CREAT|O_TRUNC)) { - QUORUM_CHECK(open,out); - } - local = AFR_FRAME_INIT (frame, op_errno); if (!local) goto out; -- cgit