From 0c950f914270d1415c05475fc49a0be9dd33ea9b Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 23 May 2012 18:09:48 +0530 Subject: cluster/afr: Release inodelk on erase changelog failures Change-Id: I58271e1ac5a116b5bc717d7cad9f03eb7dc8a1a4 BUG: 811551 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.com/3417 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/cluster/afr/src/afr-self-heal-data.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators') diff --git a/xlators/cluster/afr/src/afr-self-heal-data.c b/xlators/cluster/afr/src/afr-self-heal-data.c index a5cbc5f04..acc96697f 100644 --- a/xlators/cluster/afr/src/afr-self-heal-data.c +++ b/xlators/cluster/afr/src/afr-self-heal-data.c @@ -373,6 +373,9 @@ afr_sh_data_erase_pending_cbk (call_frame_t *frame, void *cookie, if (call_count == 0) { if (sh->op_failed) { + if (sh->old_loop_frame) + sh_loop_finish (sh->old_loop_frame, this); + sh->old_loop_frame = NULL; afr_sh_data_fail (frame, this); goto out; } -- cgit