From 241f9c83bfb85519e131d4ec345d0556c4f296cc Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Fri, 10 Jun 2011 04:37:38 +0000 Subject: cluster/afr: propagate proper errno returned by lock fops If locks could not be held on any of the servers, then propagate the errno returned by the lock FOPs instead of hardcoding EAGAIN/EINVAL. Signed-off-by: Anand Avati BUG: 2993 ([glusterfs-3.2.0qa2]: hang while doing the selfheal) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2993 --- xlators/cluster/afr/src/afr-lk-common.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'xlators') diff --git a/xlators/cluster/afr/src/afr-lk-common.c b/xlators/cluster/afr/src/afr-lk-common.c index 65cfaf0638f..eb4dbdbf5be 100644 --- a/xlators/cluster/afr/src/afr-lk-common.c +++ b/xlators/cluster/afr/src/afr-lk-common.c @@ -934,8 +934,6 @@ afr_lock_blocking (call_frame_t *frame, xlator_t *this, int child_index) local->op_ret = -1; int_lock->lock_op_ret = -1; - local->op_errno = EINVAL; - int_lock->lock_op_errno = EINVAL; afr_copy_locked_nodes (frame, this); @@ -969,8 +967,6 @@ afr_lock_blocking (call_frame_t *frame, xlator_t *this, int child_index) local->op_ret = -1; int_lock->lock_op_ret = -1; - local->op_errno = EAGAIN; - int_lock->lock_op_errno = EAGAIN; afr_copy_locked_nodes (frame, this); -- cgit