summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnand Avati <avati@gluster.com>2009-10-13 07:32:27 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-13 06:23:14 -0700
commit52521b87a32d841d5d4c9492c0916d658dc99907 (patch)
tree08cb6b159174ba2be0eb6bb3551b24d62b508dda
parentf512ee469bd690f65e388f565b69e2395e43a4aa (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
-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 40a4bb26a..526129846 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 {