summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-transaction.c
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-10-13 07:32:46 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-13 06:23:10 -0700
commit7c4429b9631c3c9866620887d6a41030466f71e3 (patch)
tree157af0e6733ce0207171980a0624c7e5803ab7a6 /xlators/cluster/afr/src/afr-transaction.c
parent103a9ecfaf5881b31844b8a12a5b98dc5308a800 (diff)
afr transaction: fix op_ret check during locking
Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 112 (parallel deletion of files mounted by different clients on the same back-end hangs and/or does not completely delete) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=112
Diffstat (limited to 'xlators/cluster/afr/src/afr-transaction.c')
-rw-r--r--xlators/cluster/afr/src/afr-transaction.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c
index 40a4bb26ada..526129846c2 100644
--- a/xlators/cluster/afr/src/afr-transaction.c
+++ b/xlators/cluster/afr/src/afr-transaction.c
@@ -915,8 +915,8 @@ afr_lock_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
}
UNLOCK (&frame->lock);
- if ((local->op_ret == -1) &&
- (local->op_errno == ENOSYS)) {
+ if ((op_ret == -1) &&
+ (op_errno == ENOSYS)) {
afr_unlock (frame, this);
} else {
if (op_ret == 0) {
@@ -984,7 +984,7 @@ afr_lock_lower_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
}
UNLOCK (&frame->lock);
- if (local->op_ret != 0) {
+ if (op_ret != 0) {
afr_unlock (frame, this);
goto out;
} else {